示例#1
0
 protected override void Execute()
 {
     if (_model.IsRecorded)
     {
         _dataAccess.Update(_model);
     }
     else
     {
         _dataAccess.Insert(_model);
     }
 }
示例#2
0
 protected override void Execute()
 {
     _dataAccess.Insert(_model);
 }