Model representing a very simple customer
 public void Create(CustomerModel model)
 {
     model.Id = _internalStorage.Count + 1;
     _internalStorage.Add(model.Id, model);
 }
 public void Create(CustomerModel model)
 {
     _context.Customers.Add(model);
     _context.SaveChanges();
 }
Example #3
0
 public void Create(CustomerModel model)
 {
     _context.Customers.Add(model);
     _context.SaveChanges();
 }