public void Update(Employee employee) { _db.Entry(employee).State = EntityState.Modified; _db.SaveChanges(); }
public void Add(Employee employee) { _db.Employee.Add(employee); _db.SaveChanges(); }