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));
        }