Files
laatzen/LaaProductionWeb/LaaProduction.Web/Controllers/API/Personalization/SoftwareController.cs
T

25 lines
663 B
C#

namespace LaaProduction.Web.Controllers.API.Personalization
{
using LaaProduction.Personalization.Interfaces;
using LaaProduction.Web.App_Infrastructure;
using System.Web.Http;
[AuthorizeBearer]
public class SoftwareController : ApiController
{
private readonly ISoftwareManager softwareManager;
public SoftwareController()
=> this.softwareManager = ServiceProvider.GetService<ISoftwareManager>();
[HttpGet]
public IHttpActionResult Functions()
{
var employeeRoles = this.softwareManager.GetFunctions();
return this.Json(employeeRoles);
}
}
}