示例#1
0
        public async Task <ActionResult <PersonPhoneResponse> > Get()
        {
            var resposta = await _facade.FindAllAsync();


            return(Response(resposta));
        }
示例#2
0
 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);
     }
 }
示例#3
0
 public async Task <ActionResult <PersonPhoneResponse> > GetAll() => Response(await facade.FindAllAsync());