Example #1
0
 public static bool Delete(IList<NumBitVM> model, ProviderCurrentMember currentMember)
 {
     bool returnStatus = true;
     foreach (NumBitVM pair in model)
     {
         if (pair.Bit && ProviderCategory.Exists(pair.Num))
         {
             ProviderCategory aCategory = new ProviderCategory(pair.Num);
             if (currentMember.CanEdit(aCategory))
             {
                 returnStatus &= aCategory.Delete();
             }
         }
     }
     InsideWordWebStaticCache.Instance.ClearCache();
     return returnStatus;
 }