public List<Employee> Esp_GetEmp() { using (var context = new Context()) { var emps = context.Employees.ToList(); return emps; } }
public void Esp_AddEmp(Employee emp) { using (var context = new Context()) { context.Employees.Add(emp); context.SaveChanges(); } }