public ActionResult Index() { var drinks = DrinkService.GetAll(); var coins = CoinService.GetAll(); return(View(new AutomatViewModel(coins, drinks, GetTotal()))); }
public IActionResult Get() { var result = _coinService.GetAll(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }