示例#1
0
        private ResultPage <FortressPrime.BackEnd.Common.Beans.User.UserEntity> GetUsers(TableDisplayParams tableParams)
        {
            var parameters = new UserManagement.SelectParameters();

            parameters.PageSort = PageSortReportParameters.CreateFrom(tableParams);

            return(UserManagement.GetAllUsers(parameters));
        }
示例#2
0
        public ActionResult GetUsersWithFilter(TableDisplayParams tableParams, string searchString)
        {
            var parameters = new UserManagement.SelectParameters();

            parameters.searchString = searchString;

            parameters.PageSort = PageSortReportParameters.CreateFrom(tableParams);

            try
            {
                var data = UserManagement.GetAllUsers(parameters);
                return(new JsonNetResult()
                {
                    Data = data, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet
                });
            }
            catch (Exception e)
            {
                return(new JsonNetResult()
                {
                    Data = e.Message, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet
                });
            }
        }
        private ResultPage<FortressPrime.BackEnd.Common.Beans.User.UserEntity> GetUsers(TableDisplayParams tableParams)
        {
            var parameters = new UserManagement.SelectParameters();

            parameters.PageSort = PageSortReportParameters.CreateFrom(tableParams);

            return UserManagement.GetAllUsers(parameters);
        }
        public ActionResult GetUsersWithFilter(TableDisplayParams tableParams, string searchString)
        {
            var parameters = new UserManagement.SelectParameters();

            parameters.searchString = searchString;

            parameters.PageSort = PageSortReportParameters.CreateFrom(tableParams);

            try
            {
                var data = UserManagement.GetAllUsers(parameters);
                return new JsonNetResult() { Data = data, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet };
            }
            catch (Exception e)
            {
                return new JsonNetResult() { Data = e.Message, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet };
            }
        }