public async Task <SportDto> Get(int id) { return(_sportCache.GetData() .Where(x => x.Id == id) .Select(x => new SportDto { Id = x.Id, Name = x.Name, Description = x.Description }) .FirstOrDefault()); }
public async Task <SportDto> Get(int id) { return(_sportCache.GetData() .Where(x => x.Id == id) .Select(x => new SportDto { Id = x.Id, Name = x.Name, Description = x.Description }) .FirstOrDefault()); }