public JsonResult GetAllData(int rows, int page)
        {
            TrinhDoHocVanServices service = new TrinhDoHocVanServices();
            List<TrinhDoHocVanEntity> listTrinhDoHocVan = new List<TrinhDoHocVanEntity>();

            try
            {
                listTrinhDoHocVan = service.GetAll();
                return Json(PaginationHelper<TrinhDoHocVanEntity>.Execute(listTrinhDoHocVan, page, rows), JsonRequestBehavior.AllowGet);
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.ToString());
            }

            return Json(null);
        }
        public JsonResult GetAllDataWithoutPagination()
        {
            TrinhDoHocVanServices service = new TrinhDoHocVanServices();
            List<TrinhDoHocVanEntity> listTrinhDoHocVan = new List<TrinhDoHocVanEntity>();
            string result = null;
            try
            {
                listTrinhDoHocVan = service.GetAll();
                result = JsonConvert.SerializeObject(listTrinhDoHocVan);
                return Json(RenderResult.RequestCompleted(ViewData, result), JsonRequestBehavior.AllowGet);
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.ToString());
            }

            return Json(null);
        }
        // GET: trinhDoHocVan
        public ActionResult Index()
        {
            TrinhDoHocVanServices service = new TrinhDoHocVanServices();
            List<TrinhDoHocVanEntity> listtrinhDoHocVan = new List<TrinhDoHocVanEntity>();
            string result = null;

            try
            {
                listtrinhDoHocVan = service.GetAll();
                result = JsonConvert.SerializeObject(listtrinhDoHocVan);
                RenderResult.RequestCompleted(ViewData, result);
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.ToString());
                RenderResult.RequestError(ViewData, "Lỗi hệ thống");
            }

            return View();
        }
        public JsonResult GetMaQuyDinh()
        {
            TrinhDoHocVanServices service = new TrinhDoHocVanServices();

            try
            {
                return Json(RenderResult.RequestCompleted(ViewData, GenKey.GenIncrementKey("TDHV", 3, service.GetAll().Count)), JsonRequestBehavior.AllowGet);
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.ToString());
                return Json(RenderResult.RequestError(ViewData, "Lỗi xảy ra"), JsonRequestBehavior.AllowGet);
            }
        }