Example #1
0
 public ActionResult Create(NoteCRVM newNote)
 {
     if (ModelState.IsValid)
     {
         try
         {
             _pomBL.CreateNoteRecord(_mapper.cast2NoteRecord(newNote));
             return(RedirectToAction(nameof(Index)));
         }
         catch
         {
             return(View());
         }
     }
     return(View());
 }