Esempio n. 1
0
 public bool DeleteBy(string id)
 {
     int index = 0;
     foreach (var account in AccountCollection)
     {
         if (account.Id.Equals(id))
         {
             AccountCollection.RemoveAt(index);
             this.CurrentAccountId = string.Empty;
             return true;
         }
         index++;
     }
     return false;
 }