public ActionResult Edit() { var m = new CorpEditVM { Input = Map <Corp, CorpEditVM.EditInput>(GetLoginCorp()) }; return(ForView(m)); }
public ActionResult Save(CorpEditVM editvm) { if (ModelState.IsValid) { Save(editvm.Input); SetViewMessage(Message_SaveSuccessfully); if (editvm.Input.Id == 0) { return(RcJson()); } } return(ClientShowMessage()); }