Example #1
0
 public bool Add(Employee entity)
 {
     db.Employees.Add(entity);
     return(db.SaveChanges() > 0);
 }
Example #2
0
 public bool Add(Department entity)
 {
     db.Departments.Add(entity);
     return(db.SaveChanges() > 0);
 }