Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DocumentA
- {
- public string User;
- }
- public class DocumentB
- {
- public string User;
- }
- public class DocumentC
- {
- public string User;
- }
- public class DocumentD
- {
- public string User;
- }
- public class DocumentE
- {
- public string User;
- }
- public class DocumentF
- {
- public string User;
- }
- public class DocumentG
- {
- public string User;
- }
- public class DocumentH
- {
- public string User;
- }
- public class DocumentARepository
- {
- public List<DocumentA> documents;
- public DocumentARepository()
- {
- documents = new List<DocumentA>();
- }
- public IEnumerable<DocumentA> GetUserDocuments(string user)
- {
- return documents.Where(x => x.User == user);
- }
- }
- public class DocumentBRepository
- {
- public List<DocumentB> documents;
- public DocumentBRepository()
- {
- documents = new List<DocumentB>();
- }
- public IEnumerable<DocumentB> GetUserDocuments(string user)
- {
- return documents.Where(x => x.User == user);
- }
- }
- public class DocumentCRepository
- {
- public List<DocumentC> documents;
- public DocumentCRepository()
- {
- documents = new List<DocumentC>();
- }
- public IEnumerable<DocumentC> GetUserDocuments(string user)
- {
- return documents.Where(x => x.User == user);
- }
- }
- public class DocumentDRepository
- {
- public List<DocumentD> documents;
- public DocumentDRepository()
- {
- documents = new List<DocumentD>();
- }
- public IEnumerable<DocumentD> GetUserDocuments(string user)
- {
- return documents.Where(x => x.User == user);
- }
- }
- public class DocumentERepository
- {
- public List<DocumentE> documents;
- public DocumentERepository()
- {
- documents = new List<DocumentE>();
- }
- public IEnumerable<DocumentE> GetUserDocuments(string user)
- {
- return documents.Where(x => x.User == user);
- }
- }
- public class DocumentFRepository
- {
- public List<DocumentF> documents;
- public DocumentFRepository()
- {
- documents = new List<DocumentF>();
- }
- public IEnumerable<DocumentF> GetUserDocuments(string user)
- {
- return documents.Where(x => x.User == user);
- }
- }
- public class DocumentGRepository
- {
- public List<DocumentG> documents;
- public DocumentGRepository()
- {
- documents = new List<DocumentG>();
- }
- public IEnumerable<DocumentG> GetUserDocuments(string user)
- {
- return documents.Where(x => x.User == user);
- }
- }
- public class DocumentHRepository
- {
- public List<DocumentH> documents;
- public DocumentHRepository()
- {
- documents = new List<DocumentH>();
- }
- public IEnumerable<DocumentH> GetUserDocuments(string user)
- {
- return documents.Where(x => x.User == user);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment