public ActionResult Delete(int id)
 {
     RequestWriteObj = new BetInfoForFile(Server.HtmlEncode(Request.RequestType), GetIPAddress(), Request.Url.ToString());
     Bets.Remove(Bets.Find(b => b.Id == id));
     ViewBag.Bets = Bets;
     return(View("~/Views/Home/Index.cshtml"));
 }
 public ActionResult Add(Bet bet)
 {
     RequestWriteObj = new BetInfoForFile(Server.HtmlEncode(Request.RequestType), GetIPAddress(), Request.Url.ToString());
     if (Bets.Find(b => b == bet) == null)
     {
         Bets.Add(bet);
     }
     ViewBag.Bets = Bets;
     return(View("~/Views/Home/Index.cshtml"));
 }
 public ActionResult Index()
 {
     RequestWriteObj = new BetInfoForFile(Server.HtmlEncode(Request.RequestType), GetIPAddress(), Request.Url.ToString());
     ViewBag.Bets    = Bets;
     return(View());
 }