示例#1
0
 public void SubmitForm(DataAcquisitionEntity daEntity, string keyValue = "")
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         daEntity.Modify(keyValue);
         service.Update(daEntity);
     }
     else
     {
         daEntity.Create();
         service.Insert(daEntity);
     }
 }