public async Task <ActionResult <PersonPhoneResponse> > Get() { var resposta = await _facade.FindAllAsync(); return(Response(resposta)); }
public async Task <ActionResult <PhoneNumberTypeResponse> > Get() { try { var response = Response(await _facade.FindAllAsync()); return(response); } catch (Exception ex) { var result = BadRequest(ex.Message); return(result); } }
public async Task <ActionResult <PersonPhoneResponse> > GetAll() => Response(await facade.FindAllAsync());