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