Пример #1
0
        public ActionResult Search(string masterControllerAction = null, string masterEntity = null, string masterKey = null)
        {
            UserRoleCollectionModel userRoleCollectionModel = new UserRoleCollectionModel(ActivityOperations, "Search", masterControllerAction, masterEntity, masterKey);

            try
            {
                if (IsOperation(userRoleCollectionModel.OperationResult))
                {
                    return(ZPartialView(userRoleCollectionModel));
                }
            }
            catch (Exception exception)
            {
                userRoleCollectionModel.OperationResult.ParseException(exception);
            }

            return(JsonResultOperationResult(userRoleCollectionModel.OperationResult));
        }
Пример #2
0
        public ActionResult Index(string masterEntity = null, string masterKey = null)
        {
            UserRoleCollectionModel userRoleCollectionModel = new UserRoleCollectionModel(ActivityOperations, "Index", null, masterEntity, masterKey);

            try
            {
                if (IsIndex(userRoleCollectionModel.OperationResult))
                {
                    return(ZView(userRoleCollectionModel));
                }
            }
            catch (Exception exception)
            {
                userRoleCollectionModel.OperationResult.ParseException(exception);
            }

            return(ZViewOperationResult(userRoleCollectionModel.OperationResult));
        }