Exemple #1
0
        public ActionResult SearchCustomerRegis(string pKeySearch, int pNumPage)
        {
            var lstUsers = new List <RegisterInfo>();

            try
            {
                decimal totalRecord = 0;
                var     userBL      = new UserBL();
                int     p_to        = 0;
                int     p_from      = CommonFuc.GetFromToPage(pNumPage, ref p_to);
                lstUsers         = userBL.RegisterGetAll(pKeySearch, p_from, p_to, ref totalRecord);
                ViewBag.lstUsers = lstUsers;
                string htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <RegisterInfo>((int)totalRecord, 1, "bản ghi", 10, "jsPageKH");
                ViewBag.Paging = htmlPaging;
                return(PartialView("~/Areas/ModuleUsersAndRoles/Views/User/_PartialTableListRegistor.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }

            return(PartialView("~/Areas/ModuleUsersAndRoles/Views/User/_PartialTableListRegistor.cshtml"));
        }