public void SubmitForm(TempleteCheckEntity TempleteCheckEntity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { TempleteCheckEntity.Modify(keyValue); service.Update(TempleteCheckEntity); } else { TempleteCheckEntity.Create(); service.Insert(TempleteCheckEntity); } }
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); }