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