Exemplo n.º 1
0
 // GET: Search
 public ActionResult Index()
 {
     using (var db = new SimonOMarcusEntities())
     {
         return(View());
     }
 }
Exemplo n.º 2
0
 public ActionResult Index(Stat line)
 {
     using (var context = new SimonOMarcusEntities())
     {
         var repos = new StatRepository();
         repos.addLine(line.Goals, line.Assists);
         ViewBag.Mess = "You have registered a game!";
     }
     return(View(line));
 }
Exemplo n.º 3
0
 public ActionResult Index(Games game)
 {
     using (var db = new SimonOMarcusEntities())
     {
         var repos = new GamesRepository();
         repos.AddGame(game.GameId, game.HomeScore, game.AwayScore, game.HomeTeam, game.AwayTeam);
         ViewBag.Mess = "You have registered a game!";
     }
     return(View(game));
 }