Exemple #1
0
        public ActionResult Edit()
        {
            var m = new CorpEditVM
            {
                Input = Map <Corp, CorpEditVM.EditInput>(GetLoginCorp())
            };

            return(ForView(m));
        }
Exemple #2
0
 public ActionResult Save(CorpEditVM editvm)
 {
     if (ModelState.IsValid)
     {
         Save(editvm.Input);
         SetViewMessage(Message_SaveSuccessfully);
         if (editvm.Input.Id == 0)
         {
             return(RcJson());
         }
     }
     return(ClientShowMessage());
 }