Example #1
0
 public void SubmitForm(TempleteCheckEntity TempleteCheckEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         TempleteCheckEntity.Modify(keyValue);
         service.Update(TempleteCheckEntity);
     }
     else
     {
         TempleteCheckEntity.Create();
         service.Insert(TempleteCheckEntity);
     }
 }
Example #2
0
 public TempleteCheckEntity SubmitFormEx(TempleteCheckEntity entity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         entity.Modify(keyValue);
         service.Update(entity);
     }
     else
     {
         entity.Create();
         service.Insert(entity);
     }
     return(entity);
 }