Exemple #1
0
 public virtual async Task <T> GetByIdAsync(string id)
 {
     return(await _dbContext.Set <T>().FindAsync(id));
 }
Exemple #2
0
 public async Task <T> GetById(int id)
 {
     return(await Context.Set <T>().FindAsync(id));
 }