public User Get(long id) { User user = null; if (user == null) { var expression = PredicateBuilder.Create <User>(d => d.Id == id && d.DeletedDate == null); user = DbStore.ExecuteExpressionFirst <User>(expression); } return(user); }
public User Get(Expression <Func <User, bool> > expression) { return(DbStore.ExecuteExpressionFirst <User>(expression)); }