public async Task <List <SetDto> > GetAvailableAsync() { List <Set> sets = new List <Set>(); var allSets = await _setRepository.GetAllAsync(); foreach (var set in allSets) { if (set.IsAvailable == true) { sets.Add(set); } } return(_mapper.Map <List <Set>, List <SetDto> >(sets)); }