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