public JsonResult GetData([DataSourceRequest] DataSourceRequest request)
 {
     using (DBEmpEntities db = new DBEmpEntities())
     {
         var lst = db.Tbl_Emp.ToList();
         return Json(lst.ToDataSourceResult(request));
     }
 }
Пример #2
0
 public DepartmentAccess()
 {
     ctx = new DBEmpEntities();
 }