Files
mixtape/zero.Backoffice/Endpoints/Applications/ApplicationsController.cs
T
2021-12-09 14:18:38 +01:00

22 lines
521 B
C#

using Microsoft.AspNetCore.Mvc;
using zero.Api.Filters;
namespace zero.Backoffice.Endpoints.Applications;
[ZeroSystemApi]
public class ApplicationsController : ZeroBackofficeController
{
readonly IApplicationStore Store;
public ApplicationsController(IApplicationStore store)
{
Store = store;
}
[HttpGet("")]
public virtual async Task<ActionResult<Paged>> Get()
{
Paged<Application> result = await Store.Load(1, 100);
return Mapper.Map<Application, ApplicationPresentation>(result);
}
}