1234567891011121314151617181920212223242526272829303132 |
- using System.Collections.Generic;
- using Luticate2.Utils.Controllers;
- using Luticate2.Utils.Dbo;
- using Luticate2.Utils.Dbo.OrderBy;
- using Microsoft.AspNetCore.Mvc;
- using Test.Utils.Dbo.PkGuid;
- using WebTest.Business;
-
- namespace WebTest.Controllers
- {
- public class PkGuidController : LuController
- {
- private readonly PkGuidBusiness _busines;
-
- public PkGuidController(PkGuidBusiness busines)
- {
- _busines = busines;
- }
-
- [Route("[controller]/{id}")]
- public PkGuidDbo Get(string id)
- {
- return Handle(_busines.GetSingleById(id));
- }
-
- [Route("[controller]")]
- public LuPaginatedDbo<PkGuidDbo> Get(LuOrderByDbo orderBy, int page = 0, int perPage = int.MaxValue)
- {
- return Handle(_busines.GetMultiple(orderBy, page, perPage));
- }
- }
- }
|