public ActionResult Create(FormCollection form, CreateEditViewModel model) { if (ModelState.IsValid) { var memberState = new MemberState(); Mapper.DynamicMap(model, memberState); memberProvider.AddMemberState(memberState); } var jsonViewModel = new AjaxViewModel(true, model, null); return(Json(jsonViewModel)); }