public void remove(Employee employee)
 {
     this._context.Employees.Remove(this._context.Employees.First(t => t.Id == employee.Id));
     _context.SaveChanges();
 }
Пример #2
0
 public void Add(Customer customer)
 {
     _context.Customers.Add(customer);
     _context.SaveChanges();
 }