//CRUD
 public void Register(Collaborator collaborator)
 {
     _database.Add(collaborator);
     _database.SaveChanges();
 }
Exemple #2
0
 public void Register(NewsletterEmail newsletter)
 {
     _database.NewsletterEmails.Add(newsletter);
     _database.SaveChanges();
 }
 public void Register(DeliveryAddress deliveryAddress)
 {
     _database.Add(deliveryAddress);
     _database.SaveChanges();
 }
Exemple #4
0
 public void Register(Client client)
 {
     _database.Add(client);
     _database.SaveChanges();
 }
 public void Register(Image image)
 {
     _database.Add(image);
     _database.SaveChanges();
 }
 public void Register(Category category)
 {
     _database.Add(category);
     _database.SaveChanges();
 }
 public void Register(Product product)
 {
     _database.Add(product);
     _database.SaveChanges();
 }