public async Task <IActionResult> CreatePrediction(AdministrationViewModel model) { Prediction predictionAdded = await administrationRepository.AddPredictionAsync(new Prediction { Odds = model.Odds, Chance = model.Chance, MatchId = model.MatchId, TipId = model.TipId }); await administrationRepository.AddUserRolePredictionAsync(new UserRolePredictions { UserRoleId = model.RoleId, PredictionId = predictionAdded.PredictionId }); return(await CreateViewModel()); }