public async Task <IActionResult> DeleteAsync(Guid id) { var result = await _alunoService.DeleteAsync(id); if (!result.Success) { return(BadRequest(result.Message)); } var alunoResource = _mapper.Map <Aluno, AlunoResource>(result.Aluno); return(Ok(alunoResource)); }