public ActionResult Edit(int id) { SharedVM.LogPageHit("Bets/Edit/" + id, User.Identity.Name); var vm = new BetsVM(dbConn); var thisSite = vm.GetSingleBet(id); return(View(thisSite)); }
public ActionResult Edit(int id) { SharedVM.LogPageHit("Bets/Edit/" + id, User.Identity.Name); var vm = new BetsVM(dbConn); var thisBet = vm.GetSingleBet(id); GetDataForDropdowns(ref thisBet); return(View(thisBet)); }
public ActionResult Edit(BetObj myBet) { SharedVM.LogPageHit("Bets/Edit/Save(" + myBet.BetId + ")", User.Identity.Name); var vm = new BetsVM(dbConn); if (myBet.BetId > 0) { vm.UpdateBetItem(myBet); } var thisSite = vm.GetSingleBet(myBet.BetId); return(View(thisSite)); }