public Entity.Customer ParseCustomer(Model.Customer customer) { return(new Entity.Customer { Name = customer.Name, Address = customer.Address }); }
public Model.Customer AddCustomer(Model.Customer newCust) { _context.Customers.Add(_mapper.ParseCustomer(newCust)); _context.SaveChanges(); return(newCust); }