/// <summary>
 /// 保存
 /// </summary>
 /// <param name="entity"></param>
 /// <param name="keyValue"></param>
 public bool SubmitForm(tUserLeadBonusRecordEntity entity, int keyValue)
 {
     if (keyValue > 0)
     {
         return(this.BaseRepository().Update(entity) > 0);
     }
     else
     {
         return(this.BaseRepository().Insert(entity) > 0);
     }
 }
Exemple #2
0
 /// <summary>
 /// 保存
 /// </summary>
 /// <param name="entity"></param>
 /// <param name="keyValue"></param>
 public bool SubmitForm(tUserLeadBonusRecordEntity entity, int keyValue)
 {
     return(dal.SubmitForm(entity, keyValue));
 }