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