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