You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
705 B

  1. using CounsellorBL.BLStructure;
  2. using Microsoft.AspNetCore.Mvc;
  3. using OT.COM.SignalerMessage;
  4. namespace EnterprizeV4.Controllers
  5. {
  6. [ApiController]
  7. [Route("[controller]")]
  8. public class CmdController : ControllerBase
  9. {
  10. const string OPTIONS_RETURN = "1";
  11. [HttpOptions]
  12. public string Options()
  13. {
  14. return OPTIONS_RETURN;
  15. }
  16. [HttpPost]
  17. public CResponsePack GetData([FromBody]CReqestPack rq)
  18. {
  19. return (new Models.CmdService()).GetData(
  20. rq, new ControllDataPack()
  21. {
  22. ServiceProvider = HttpContext.RequestServices
  23. });
  24. }
  25. }
  26. }