Ejemplo n.º 1
0
        public ActionResult Search(string masterControllerAction = null)
        {
            UserCollectionModel userCollectionModel = new UserCollectionModel(ActivityOperations, "Search", masterControllerAction);

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

            return(JsonResultOperationResult(userCollectionModel.OperationResult));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            UserCollectionModel userCollectionModel = new UserCollectionModel(ActivityOperations, "Index", null);

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

            return(ZViewOperationResult(userCollectionModel.OperationResult));
        }