예제 #1
0
        public ActionResult GetUsersJson(TableDisplayParams tableParams)
        {
            var data = this.GetUsers(tableParams);

            return(new JsonNetResult()
            {
                Data = data, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet
            });
        }
예제 #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
                });
            }
        }
예제 #3
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));
        }
        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 };
            }
        }
 public ActionResult GetUsersJson(TableDisplayParams tableParams)
 {
     var data = this.GetUsers(tableParams);
     return new JsonNetResult() { Data = data, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet };
 }