// GET: ThongTin2C
        public ActionResult Index()
        {
            ThongTin2CServices service = new ThongTin2CServices();
            List<ThongTin2CEntity> entities = new List<ThongTin2CEntity>();
            string result = null;

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

            return View();
        }
        public JsonResult GetAllData(int rows, int page)
        {
            ThongTin2CServices service = new ThongTin2CServices();
            List<ThongTin2CEntity> entities = new List<ThongTin2CEntity>();

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

            return Json(null);
        }
 public JsonResult GetAllIdThongTin()
 {
     string result = null;
     ThongTin2CServices service = new ThongTin2CServices();
     List<ThongTin2CEntity> ttServices = new List<ThongTin2CEntity>();
     try
     {
         ttServices = service.GetAll();
         result = JsonConvert.SerializeObject(ttServices);
         return Json(ttServices, JsonRequestBehavior.AllowGet);
     }
     catch (Exception e)
     {
         System.Console.WriteLine(e.ToString());
         return Json(null);
     }
 }