private DepartmentsQuery CloneTypewise()
        {
            var copy = new DepartmentsQuery();

            copy.DepartmentId        = this.DepartmentId;
            copy.ShouldLoadEmployees = this.ShouldLoadEmployees;
            return(copy);
        }
Ejemplo n.º 2
0
        private DepartmentsQuery CloneTypewise()
        {
            var copy = new DepartmentsQuery
            {
                DepartmentId                       = this.DepartmentId,
                DepartmentHeadEmployeeId           = this.DepartmentHeadEmployeeId,
                IncludeDirectDescendantDepartments = this.IncludeDirectDescendantDepartments,
                IncludeAllDescendantDepartments    = this.IncludeAllDescendantDepartments
            };

            return(copy);
        }