public ActionResult Create(NoteViewModel note) { try { if (ModelState.IsValid) { _notesService.Add(note.ConvertToDomain()); } } catch (Exception) { throw; } return(RedirectToAction("Index")); }
public ActionResult Create(NoteViewModel note) { try { if (ModelState.IsValid) { _notesService.Add(note.ConvertToDomain()); } } catch (Exception) { throw; } return(RedirectToAction("Index")); }