public ActionResult Edit(ModelLaboratorio modelLaboratorio) { try { server.Editar(Converte.ToLaboratorio(modelLaboratorio)); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(ModelLaboratorio lab) { try { server.Inserir(Converte.ToLaboratorio(lab)); return(RedirectToAction("Index")); } catch { return(View()); } }