Esempio n. 1
0
 public void UploadEmployees(List <Employee> employees, SalesDbContex db)
 {
     db.Employees.AddRange(employees);
     db.SaveChanges();
 }
Esempio n. 2
0
 public static List <Employee> Get(SalesDbContex db)
 {
     return(db.Employees.ToList());
 }
Esempio n. 3
0
 public Employee Save(Employee e, SalesDbContex db)
 {
     db.Employees.Add(e);
     db.SaveChanges();
     return(e);
 }