예제 #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());