Exemplo n.º 1
0
        public ActionResult Index(int?masterSupportRepId = null)
        {
            ClearUrlDictionary();

            CustomerCollectionModel customerCollectionModel = new CustomerCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index",
                MasterSupportRepId   = masterSupportRepId
            };

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

            return(View(customerCollectionModel));
        }
Exemplo n.º 2
0
        public ActionResult Search(string masterUrl = null, string masterControllerAction = null, int?masterSupportRepId = null)
        {
            WriteUrlDictionary(masterUrl);

            CustomerCollectionModel customerCollectionModel = new CustomerCollectionModel()
            {
                IsSecurityOperations   = this.IsSecurityOperations,
                ControllerAction       = "Search",
                MasterControllerAction = masterControllerAction,
                MasterSupportRepId     = masterSupportRepId
            };

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

            return(PartialView(customerCollectionModel));
        }