public async Task <IActionResult> BetEdit(int id) { var findBet = await betRepository.FindBet(id); if (!findBet) { return(View("Error", $"Bet with id: {id} does not exist in database!")); } var betResource = await betRepository.GetBet(id); ViewBag.Currency = await currencyRepository.GetCurrency(); return(PartialView("_EditBet", betResource)); }