Beispiel #1
0
 public void Delete(long uid, string[] nos)
 {
     ExceptionHelper.ThrowIfNotId(uid, "uid");
     nos = (nos ?? Enumerable.Empty <string>()).Where(n => !String.IsNullOrWhiteSpace(n)).Distinct().ToArray();
     if (nos.Length > 0)
     {
         _TradeRepository.Update(c => nos.Any(n => c.no.StartsWith(n)) && c.enabled, c => new Data.Trade {
             enabled = false, updated = DateTime.Now, updater = uid
         });
     }
 }