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

            return(customer);
        }
Exemple #3
0
 public IEnumerable <CustomerDto> GetCustomer()
 {
     return(_customerApplicationService.Get());
 }