5bd278fa69
* Added NC handler class * Fixed threads * Added threads: AXES, ALARMS, GENERIC INFO + API * Refactoring
27 lines
726 B
C#
27 lines
726 B
C#
using System.Collections.Generic;
|
|
using System.Web.Http;
|
|
using Step.Database.Controllers;
|
|
using Step.Model.DTOModels;
|
|
|
|
namespace Step.Controllers.WebApi
|
|
{
|
|
|
|
[RoutePrefix("api/config")]
|
|
public class ConfigurationController : ApiController
|
|
{
|
|
[Route("functions"), HttpGet]
|
|
public IHttpActionResult GetFunctionsConfig()
|
|
{
|
|
using (FunctionAccessController functionController = new FunctionAccessController())
|
|
{
|
|
List<DTOFunctionAccessModel> functionsList = functionController.GetFunctionAccess();
|
|
|
|
if (functionsList == null)
|
|
return NotFound();
|
|
|
|
return Ok(functionsList);
|
|
}
|
|
}
|
|
}
|
|
}
|