Пример #1
0
 public ActionResult Edit(ModelLaboratorio modelLaboratorio)
 {
     try
     {
         server.Editar(Converte.ToLaboratorio(modelLaboratorio));
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Пример #2
0
 public ActionResult Create(ModelLaboratorio lab)
 {
     try
     {
         server.Inserir(Converte.ToLaboratorio(lab));
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }