Exemplo n.º 1
0
 public ActionResult Edit(AdresseViewModel rVM)
 {
     try
     {
         rVM.Save();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemplo n.º 2
0
 public ActionResult Create(AdresseViewModel Adresse)
 {
     try
     {
         Adresse.Save();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }