コード例 #1
0
        public ActionResult FindFunction(string keysSearch, string options)
        {
            var lstFunctions = new List <FunctionInfo>();

            try
            {
                var functionBL = new FunctionBL();
                lstFunctions   = functionBL.FindFunction(keysSearch, options);
                ViewBag.Paging = functionBL.GetPagingHtml();
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }

            return(PartialView("~/Areas/ModuleUsersAndRoles/Views/Function/_PartialTableListFunctions.cshtml", lstFunctions));
        }
コード例 #2
0
        public ActionResult ListFunctions()
        {
            var lstFunctions = new List <FunctionInfo>();

            try
            {
                var functionBL = new FunctionBL();
                lstFunctions   = functionBL.FindFunction();
                ViewBag.Paging = functionBL.GetPagingHtml();
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }

            return(View("~/Areas/ModuleUsersAndRoles/Views/Function/ListFunctions.cshtml", lstFunctions));
        }