public ActionResult CreateMemberNotes(FormCollection form, ListMemberStateHistoryViewModel model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             var memberNote = new MemberNote();
             Mapper.DynamicMap(model, memberNote);
             memberProvider.AddMemberNote(memberNote);
             return(Json(new AjaxViewModel(true, model, null)));
         }
         catch (Exception ex)
         {
             return(Json(new AjaxViewModel(false, null, ex.Message)));
         }
     }
     return(View());
 }