public Response <string> AddNewCustomer(Models.CustomerDetails customer) { CustomerMockData.CustomerList.Add(customer); return(new Response <string>() { Body = "Customer Added", Code = Status.Success }); }
public Response <string> UpdateCustomer(int Id, Models.CustomerDetails customerDetails) { var customer = CustomerMockData.CustomerList.Where(x => x.Id == Id).FirstOrDefault(); customer.FullName = customerDetails.FullName; customer.PhoneNumber = customerDetails.PhoneNumber; return(new Response <string>() { Body = "Updated.", Code = Status.Success }); }