// public Task<T> GetById(int id) => _context.Set<T>().FindAsync(id); public async Task <T> GetById(int id) { return(await _context.Set <T>().FindAsync(id)); }