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