//Get /api/customer/1 public CustomerDto GetCustomer(int Id) { var customer = _context.Customers.SingleOrDefault(c => c.Id == Id); var dtoCustomer = DtoHelper.MapCustomerToDtoCustomer(customer); return(dtoCustomer); }
//Get /api/customer/1 public CustomerDto GetCustomer(int Id) { var customer = _context.Customers.SingleOrDefault(c => c.Id == Id); var dtoCustomer = DtoHelper.MapCustomerToDtoCustomer(customer); return(dtoCustomer); }