public async Task <T> Get(Expression <Func <T, bool> > expression) { T entity = await _context.Set <T>().FirstOrDefaultAsync(expression); Detach(entity); return(entity); }
public async Task <T> Get(Expression <Func <T, bool> > expression) { T entity = await _context.Set <T>().FirstOrDefaultAsync(expression); Detach(entity); return(entity); }