public ActionResult <List <CustomerDTO> > Get()
 {
     try
     {
         return(_customerApplicationService.Get());
     }
     catch (Exception ex)
     {
         return(BadRequest(new { ex.Message }));
     }
 }
Exemplo n.º 2
0
        public CustomerDTO Get(int id)
        {
            var customer = applicationServiceCustomer.Get(id);

            return(customer);
        }
Exemplo n.º 3
0
 public IEnumerable <CustomerDto> GetCustomer()
 {
     return(_customerApplicationService.Get());
 }