Beispiel #1
0
 public ActionResult Create(Rest rest)
 {
     if (this.ModelState.IsValid)
     {
         db.CreateNewRest(rest);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }