public JsonResult GetData([DataSourceRequest] DataSourceRequest request) { using (DBEmpEntities db = new DBEmpEntities()) { var lst = db.Tbl_Emp.ToList(); return Json(lst.ToDataSourceResult(request)); } }
public DepartmentAccess() { ctx = new DBEmpEntities(); }