public ActionResult Search(string masterControllerAction = null, string masterEntity = null, string masterKey = null)
        {
            EmployeeTerritoryCollectionModel employeeTerritoryCollectionModel = new EmployeeTerritoryCollectionModel(ActivityOperations, "Search", masterControllerAction, masterEntity, masterKey);

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

            return(JsonResultOperationResult(employeeTerritoryCollectionModel.OperationResult));
        }
        public ActionResult Index(string masterEntity = null, string masterKey = null)
        {
            EmployeeTerritoryCollectionModel employeeTerritoryCollectionModel = new EmployeeTerritoryCollectionModel(ActivityOperations, "Index", null, masterEntity, masterKey);

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

            return(ZViewOperationResult(employeeTerritoryCollectionModel.OperationResult));
        }
        public ActionResult Index(int?masterEmployeeId = null, string masterTerritoryId = null)
        {
            ClearUrlDictionary();

            EmployeeTerritoryCollectionModel employeeTerritoryCollectionModel = new EmployeeTerritoryCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index",
                MasterEmployeeId     = masterEmployeeId, MasterTerritoryId = masterTerritoryId
            };

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

            return(View(employeeTerritoryCollectionModel));
        }
        public ActionResult Search(string masterUrl = null, string masterControllerAction = null, int?masterEmployeeId = null, string masterTerritoryId = null)
        {
            WriteUrlDictionary(masterUrl);

            EmployeeTerritoryCollectionModel employeeTerritoryCollectionModel = new EmployeeTerritoryCollectionModel()
            {
                IsSecurityOperations   = this.IsSecurityOperations,
                ControllerAction       = "Search",
                MasterControllerAction = masterControllerAction,
                MasterEmployeeId       = masterEmployeeId, MasterTerritoryId = masterTerritoryId
            };

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

            return(PartialView(employeeTerritoryCollectionModel));
        }