Ejemplo n.º 1
0
 public ActionResult <List <AddressDTO> > Get()
 {
     try
     {
         return(_addressApplicationService.Get());
     }
     catch (Exception ex)
     {
         return(BadRequest(new { ex.Message }));
     }
 }
Ejemplo n.º 2
0
        public AddressDTO Get(int id)
        {
            var address = applicationServiceAddress.Get(id);

            return(address);
        }