Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
        }