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