Beispiel #1
0
 public ActionResult Delete(int id, EditoraViewModel editoraViewModel)
 {
     try
     {
         _editoraService.RemoverEditora(editoraViewModel.EditoraViewModelToEditora());
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Beispiel #2
0
 public ActionResult Create(EditoraViewModel editoraViewModel)
 {
     try
     {
         _editoraService.IncluirEditora(editoraViewModel.EditoraViewModelToEditora());
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }