Beispiel #1
0
        public static bool DeleteMultipleNumber(Guid phonebookGuid, List <string> numbers)
        {
            try
            {
                Business.PhoneNumber  phoneNumberController = new Business.PhoneNumber();
                Dictionary <int, int> operatorNumberCount   = Outbox.GetCountNumberOfOperators(ref numbers);

                if (operatorNumberCount.Values.Sum() == 0)
                {
                    throw new Exception(Language.GetString("RecieverListIsEmpty"));
                }

                return(phoneNumberController.DeleteMultipleNumber(phonebookGuid, string.Join(",", numbers.Select <string, string>(number => string.Format("'{0}'", number)))));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #2
0
 public static bool DeleteMultipleNumber(string guidList)
 {
     Business.PhoneNumber phoneNumberController = new Business.PhoneNumber();
     return(phoneNumberController.DeleteMultipleNumber(guidList));
 }