public async Task <Customer> UpdateCustomer(FreeDaysModel freeDays) { var customer = await GetCustomer(freeDays.CustomerId); customer.FreeDays = freeDays.FreeDays; await _context.SaveChangesAsync(); return(customer); }
public async Task <ActionResult <Contract> > UnlimitedContract([FromBody] FreeDaysModel freeDaysUpdate) { var _newContract = await _contractService.UpdateCustomer(freeDaysUpdate); return(Ok(_newContract)); }