Beispiel #1
0
 public void SubmitForm(LogisticsEntity logisticsEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         logisticsEntity.Modify(keyValue);
         service.Update(logisticsEntity);
     }
     else
     {
         logisticsEntity.Create();
         service.Insert(logisticsEntity);
     }
 }
Beispiel #2
0
 public ActionResult SubmitForm(LogisticsEntity logisticsEntity, string keyValue)
 {
     logisticsApp.SubmitForm(logisticsEntity, keyValue);
     return(Success("操作成功。"));
 }