Beispiel #1
0
        public ActionResult Search(string masterControllerAction = null)
        {
            RoleCollectionModel roleCollectionModel = new RoleCollectionModel(ActivityOperations, "Search", masterControllerAction);

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

            return(JsonResultOperationResult(roleCollectionModel.OperationResult));
        }
Beispiel #2
0
        public ActionResult Index()
        {
            RoleCollectionModel roleCollectionModel = new RoleCollectionModel(ActivityOperations, "Index", null);

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

            return(ZViewOperationResult(roleCollectionModel.OperationResult));
        }