public async Task <IEnumerable <PromoViewModel> > GetPromos() { List <PromoViewModel> promos = (await PromoRepository.GetPromos()).ToList(); for (int i = 0; i < promos.Count; i++) { promos[i] = PrepPromo(promos[i]); } return(promos); }
public async Task <IEnumerable <PromoViewModel> > GetPromos() { List <PromoViewModel> promos = (await PromoRepository.GetPromos()).ToList(); for (int i = 0; i < promos.Count; i++) { promos[i] = PrepPromo(promos[i]); } return(promos); }