public async Task <T> GetByIdAsync(int id)
 {
     return(await _context.Set <T>().FindAsync(id));
 }
Exemple #2
0
 public async Task <T> getByIdAsync(int id)
 {
     return(await _context.Set <T>().FindAsync(id));//set T envio clase
 }