public List <User> Get() { List <User> userlist = null; var expression = PredicateBuilder.Create <User>(d => d.DeletedDate == null); userlist = DbStore.ExecuteeExpressionList <User>(expression); return(userlist); }
public List <Member> GetMember() { if (member == null) { var expression = PredicateBuilder.Create <Member>(d => d.DeletedDate == null); member = DbStore.ExecuteeExpressionList <Member>(expression); } return(member); }
public List <PettyCash> GetPettyCash() { if (pettycashes == null) { var expression = PredicateBuilder.Create <PettyCash>(d => d.DeletedDate == null); pettycashes = DbStore.ExecuteeExpressionList <PettyCash>(expression); } return(pettycashes); }
public List <Book> GetBookDetails() { if (bookdetails == null) { var expression = PredicateBuilder.Create <Book>(d => d.DeletedDate == null); bookdetails = DbStore.ExecuteeExpressionList <Book>(expression); } return(bookdetails); }
public List <LibraryLog> GetLibraryLog() { if (libraryLogs == null) { var expression = PredicateBuilder.Create <LibraryLog>(d => d.DeletedDate == null); libraryLogs = DbStore.ExecuteeExpressionList <LibraryLog>(expression); } libraryLogs.Distinct(); return(libraryLogs); }
public List <BookCategory> GetBookCategory() { if (bookCategory == null) { var expression = PredicateBuilder.Create <BookCategory>(d => d.DeletedDate == null); bookCategory = DbStore.ExecuteeExpressionList <BookCategory>(expression); } bookCategory.Distinct(); return(bookCategory); }
public List <Role> GetRoles() { if (roles == null) { var expression = PredicateBuilder.Create <Role>(d => d.DeletedDate == null); roles = DbStore.ExecuteeExpressionList <Role>(expression); } roles.Sort(); return(roles); }
public List <Branch> GetBranches() { if (branches == null) { var expression = PredicateBuilder.Create <Branch>(d => d.DeletedDate == null); branches = DbStore.ExecuteeExpressionList <Branch>(expression); } branches.Sort(); return(branches); }
public List <User> GetList(Expression <Func <User, bool> > expression) { return(DbStore.ExecuteeExpressionList <User>(expression)); }