Beispiel #1
0
        public List <Document> GetDocuments(int orgID, int deptID = 0, int subDeptID = 0)
        {
            List <Document> docList = new DocumentFacade().GetDocumentList(orgID);

            if (deptID > 0)
            {
                docList = docList.FindAll(delegate(Document s) { return(s.DepartmentID == deptID); });
            }
            if (subDeptID > 0)
            {
                docList = docList.FindAll(delegate(Document s) { return(s.DepartmentID == deptID && s.SubDepartmentID == subDeptID); });
            }

            return(docList);
        }