Esempio n. 1
0
 public void SubmitForm(ConfigCategoryEntity configCategoryEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         configCategoryEntity.Modify(keyValue);
         service.Update(configCategoryEntity);
     }
     else
     {
         configCategoryEntity.Create();
         service.Insert(configCategoryEntity);
     }
 }
Esempio n. 2
0
 public ActionResult SubmitForm(ConfigCategoryEntity configCategoryEntity, string keyValue)
 {
     configCategoryApp.SubmitForm(configCategoryEntity, keyValue);
     return(Success("操作成功。"));
 }