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.

PkGuidController.cs 675B

1234567891011121314151617181920212223242526272829
  1. using Luticate2.Utils.Controllers;
  2. using Microsoft.AspNetCore.Mvc;
  3. using Test.Utils.Dbo.PkGuid;
  4. using WebTest.Business;
  5. namespace WebTest.Controllers
  6. {
  7. public class PkGuidController : LuController
  8. {
  9. private readonly PkGuidBusiness _busines;
  10. public PkGuidController(PkGuidBusiness busines)
  11. {
  12. _busines = busines;
  13. }
  14. [Route("[controller]/{id}")]
  15. public PkGuidDbo Get(string id)
  16. {
  17. return Handle(_busines.GetSingleById(id));
  18. }
  19. // [Route("[controller]")]
  20. // public PkGuidDbo Get()
  21. // {
  22. // return Handle(_busines.GetMultiple());
  23. // }
  24. }
  25. }