Пример #1
0
 public async Task <IActionResult> AprovarCadastro(
     Guid id,
     [FromServices] IOrphanageService _service)
 => CustomResponse(await _service.AprovarCadastro(id));
Пример #2
0
 public async Task <IActionResult> ObterOrfanatosPendentes(
     [FromServices] IOrphanageService _service)
 => CustomResponse(await _service.ObterPendentes());
Пример #3
0
 public async Task <IActionResult> Get(
     Guid id,
     [FromServices] IOrphanageService _service)
 => CustomResponse(await _service.ObterPorId(id));
Пример #4
0
 public async Task <IActionResult> Post(
     [FromServices] IOrphanageService _service,
     [FromForm] OrphanageModel orphanageModel)
 => CustomResponse(await _service.Adicionar(orphanageModel));
Пример #5
0
 public async Task <IActionResult> Get(
     [FromServices] IOrphanageService _service)
 => CustomResponse(await _service.ObterTodos());