// GET: Snack public ActionResult Index() { var snacksDb = _snackRepo.GetAll(); var snacksVm = Mapper.Map <List <SnackDisplayVm> >(snacksDb); return(View(snacksVm)); }
public IEnumerable <Snack> GetAll() { var snacks = _snackRepository.GetAll(); return(snacks); }
public List <Snack> GetAllSnacks() { return(snackRepository.GetAll().ToList()); }
public IQueryable <Snack> GetAll() { return(SnackRepository.GetAll()); }