public ActionResult Index() { ViewBag.ModelIsNotValid = TempData["ModelIsNotValid"]; var drinks = _repository.GetAll().ToList(); return(View("Index", drinks)); }
public IActionResult GetAll() { var drinks = _drinkRepository.GetAll(); var drinkDtos = _mapper.Map <IList <DrinkDto> >(drinks); return(Ok(drinkDtos)); }
public IEnumerable <Drink> GetAll() { return(_repository.GetAll()); }
public List <Drink> GetAll() { return(_drinkRepository.GetAll()); }
public IActionResult SelectAllDrinks() { var drinks = _drinkRepository.GetAll(); return(View(drinks)); }
public List <Drink> GetAllDrinks() { var result = _drinkRepository.GetAll().ToList(); return(result); }
public IActionResult BuyDrink() { var drinks = _drinkRepository.GetAll(); return(View(drinks)); }
public IActionResult GetAll() { return(Ok(_drinkRepository.GetAll())); }