public static List <Beer> GetBeersByIds(List <string> ids) { BeerRepository br = new BeerRepository(); List <Beer> list = new List <Beer>(); foreach (var id in ids) { var beerId = int.Parse(id); list.Add(br.RetrieveById(beerId)); } return(list); }
public static List <Beer> GetBeersByIds(List <string> ids) { BeerRepository br = new BeerRepository(); List <Beer> list = new List <Beer>(); foreach (var id in ids) { var beerId = int.Parse(id); list.Add(br.RetrieveById(beerId)); } return(list); }