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