public ActionResult CreatePrediction(MyPrediction model)
 {
     model.DateCreated = DateTime.Now;
     _predictionRepository.Add(model);
     _predictionRepository.SaveChanges();
     return(RedirectToAction("Index", "Home"));
 }
 public ActionResult EditPrediction(MyPrediction model)
 {
     _predictionRepository.Update(model);
     _predictionRepository.SaveChanges();
     return(RedirectToAction("Index", "Home"));
 }