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