public ActionResult TemplateEmail_Display()
        {
            try
            {
                if (SessionData.CurrentUser == null)
                {
                    return(Redirect("/"));
                }

                decimal  _total_record          = 0;
                Email_BL _obj_bl                = new Email_BL();
                string   _keySearch             = "ALL|ALL|" + SessionData.CurrentUser.Type;
                List <Template_Email_Info> _lst = _obj_bl.Template_Email_Search(SessionData.CurrentUser.Username, _keySearch, ref _total_record);
                string htmlPaging               = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Template_Email_Info>((int)_total_record, 1, "mẫu");

                ViewBag.Obj       = _lst;
                ViewBag.Paging    = htmlPaging;
                ViewBag.SumRecord = _total_record;

                return(View("~/Areas/Manager/Views/TemplateEmail/TemplateEmail_Display.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(View());
            }
        }
        public ActionResult Search_Email(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort)
        {
            try
            {
                decimal  _total_record          = 0;
                string   p_to                   = "";
                string   p_from                 = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
                Email_BL _obj_bl                = new Email_BL();
                List <Template_Email_Info> _lst = _obj_bl.Template_Email_Search(SessionData.CurrentUser.Username, p_keysearch + "|" + SessionData.CurrentUser.Type, ref _total_record, p_from, p_to);
                string htmlPaging               = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Template_Email_Info>((int)_total_record, p_CurrentPage, "Email");

                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;
                return(PartialView("~/Areas/Manager/Views/TemplateEmail/_PartialTableEmail.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(PartialView("~/Areas/Manager/Views/TemplateEmail/_PartialTableEmail.cshtml"));
            }
        }