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

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

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

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

            return(ZViewOperationResult(employeeCollectionModel.OperationResult));
        }
        public ActionResult Index(int?masterReportsTo = null)
        {
            ClearUrlDictionary();

            EmployeeCollectionModel employeeCollectionModel = new EmployeeCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index",
                MasterReportsTo      = masterReportsTo
            };

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

            return(View(employeeCollectionModel));
        }
        public ActionResult Search(string masterUrl = null, string masterControllerAction = null, int?masterReportsTo = null)
        {
            WriteUrlDictionary(masterUrl);

            EmployeeCollectionModel employeeCollectionModel = new EmployeeCollectionModel()
            {
                IsSecurityOperations   = this.IsSecurityOperations,
                ControllerAction       = "Search",
                MasterControllerAction = masterControllerAction,
                MasterReportsTo        = masterReportsTo
            };

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

            return(PartialView(employeeCollectionModel));
        }