public TOut GetAccountById <TOut>(Expression <Func <ClientAccount, TOut> > projection, int accountId, IEnumerable <Expression <Func <ClientAccount, object> > > includes = null, bool trackInContext = true) where TOut : class { return(_repositoryBase.Find(projection, x => x.id == accountId, includes, trackInContext: trackInContext)); }
public TOut GetUserById <TOut>(Expression <Func <ClientUser, TOut> > projection, string userId, IEnumerable <Expression <Func <ClientUser, object> > > includes = null, bool trackInContext = true) where TOut : class { return(_repositoryBase.Find <ClientUser, TOut>(projection, x => x.Id == userId, includes, trackInContext)); }
public TOut GetAuditActivityLogById <TOut>(Expression <Func <AuditActivityLog, TOut> > projection, int logId, IEnumerable <Expression <Func <AuditActivityLog, object> > > includes = null, bool trackInContext = true) where TOut : class { return(_repositoryBase.Find <AuditActivityLog, TOut>(projection, x => x.Id == logId, includes, trackInContext)); }