public ActionResult Edit(Msg_EmailSetting model) { Result <int> result = new Result <int>(); ResultView <int> view = new ResultView <int>(); if (Request.Form["IsEnable"] == EnumState.Enable.ToString()) { model.IsEnable = true; } else { model.IsEnable = false; } if (Request.Form["IsConfirm"] == EnumState.Confirmed.ToString()) { model.IsConfirm = true; } else { model.IsConfirm = false; } using (MessageClientProxy proxy = new MessageClientProxy(ProxyEx(Request))) { result = proxy.UpdateEmailSetting(model); view = result.ToResultView(); } return(Json(view)); }