public ActionResult Edit(EditPlayerStats cps)
 {
     if (this.ModelState.IsValid)
     {
         PlayerStatsController psc = new PlayerStatsController();
         psc.Put(cps);
         return(RedirectToAction("Index", "Home"));
     }
     else
     {
         return(View(cps));
     }
 }
 public ActionResult DeletePlayerStats(int id)
 {
     if (this.ModelState.IsValid)
     {
         PlayerStatsController psc = new PlayerStatsController();
         psc.Delete(id);
         return(RedirectToAction("Index", "Home"));
     }
     else
     {
         return(View(id));
     }
 }
 public ActionResult Create(CreatePlayerStats cps)
 {
     if (this.ModelState.IsValid)
     {
         PlayerStatsController psc = new PlayerStatsController();
         psc.Post(cps);
         return(RedirectToAction("Index", "Home")); //LOOKUP: redirect to action (take to another page)
     }
     else
     {
         return(View(cps));
     }
 }