public JsonResult GetAllData(int rows, int page)
        {
            ChucVuServices service = new ChucVuServices();
            List<ChucVuEntity> listChucVuEntity = new List<ChucVuEntity>();

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

            return Json(null);
        }
        // GET: ChucVuEntity
        public ActionResult Index()
        {
            ChucVuServices service = new ChucVuServices();
            List<ChucVuEntity> listChucVuEntity = new List<ChucVuEntity>();
            string result = null;

            try
            {
                listChucVuEntity = service.GetAll();
                result = JsonConvert.SerializeObject(listChucVuEntity);
                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()
        {
            ChucVuServices service = new ChucVuServices();

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