Example #1
0
        public ActionResult Search(string masterControllerAction = null, string masterEntity = null, string masterKey = null)
        {
            CategoryCollectionModel categoryCollectionModel = new CategoryCollectionModel(ActivityOperations, "Search", masterControllerAction, masterEntity, masterKey);

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

            return(JsonResultOperationResult(categoryCollectionModel.OperationResult));
        }
Example #2
0
        public ActionResult Index(string masterEntity = null, string masterKey = null)
        {
            CategoryCollectionModel categoryCollectionModel = new CategoryCollectionModel(ActivityOperations, "Index", null, masterEntity, masterKey);

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

            return(ZViewOperationResult(categoryCollectionModel.OperationResult));
        }
Example #3
0
        public ActionResult Index()
        {
            ClearUrlDictionary();

            CategoryCollectionModel categoryCollectionModel = new CategoryCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index"
            };

            try
            {
                IsSearch(categoryCollectionModel.OperationResult);
            }
            catch (Exception exception)
            {
                categoryCollectionModel.OperationResult.ParseException(exception);
            }

            return(View(categoryCollectionModel));
        }
Example #4
0
        public ActionResult Search(string masterUrl = null, string masterControllerAction = null)
        {
            WriteUrlDictionary(masterUrl);

            CategoryCollectionModel categoryCollectionModel = new CategoryCollectionModel()
            {
                IsSecurityOperations   = this.IsSecurityOperations,
                ControllerAction       = "Search",
                MasterControllerAction = masterControllerAction
            };

            try
            {
                IsSearch(categoryCollectionModel.OperationResult);
            }
            catch (Exception exception)
            {
                categoryCollectionModel.OperationResult.ParseException(exception);
            }

            return(PartialView(categoryCollectionModel));
        }