public JsonResult GetAllData(int rows, int page)
        {
            QuanHeGiaDinhServices service = new QuanHeGiaDinhServices();
            List<QuanHeGiaDinhEntity> quanHeGiaDinhs = new List<QuanHeGiaDinhEntity>();

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

            return Json(null);
        }
        // GET: QuanHeGiaDinh
        public ActionResult Index()
        {
            QuanHeGiaDinhServices service = new QuanHeGiaDinhServices();
            List<QuanHeGiaDinhEntity> quanHeGiaDinhs = new List<QuanHeGiaDinhEntity>();
            string result = null;

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