public Employee SaveEmployee(Employee e) { SalesErpdal salesDal = new SalesErpdal(); salesDal.Employees.Add(e); salesDal.SaveChanges(); return(e); }
public List <Employee> GetEmployees() { SalesErpdal salesDal = new SalesErpdal(); return(salesDal.Employees.ToList()); }