예제 #1
0
        public static bool UpdateBlackListStatus(List <string> lstNumbers, bool isBlackList)
        {
            Business.PersonsInfo personController = new Business.PersonsInfo();
            DataTable            dtNumbers        = new DataTable();

            dtNumbers.Columns.Add("Mobile", typeof(string));
            DataRow row;

            foreach (string number in lstNumbers)
            {
                row = dtNumbers.NewRow();

                if (Helper.IsCellPhone(number) > 0)
                {
                    row["Mobile"] = Helper.GetLocalMobileNumber(number);
                }

                dtNumbers.Rows.Add(row);
            }

            return(personController.UpdateBlackListStatus(dtNumbers, isBlackList));
        }
예제 #2
0
 public static DataTable GetPagedBlackListNumbers(string query, int pageNo, int pageSize, string sortField, ref int resultCount)
 {
     Business.PersonsInfo personController = new Business.PersonsInfo();
     return(personController.GetPagedBlackListNumbers(query, pageNo, pageSize, sortField, ref resultCount));
 }
예제 #3
0
 public static bool UpdateBlackListStatus(Guid guid, bool isBlackList)
 {
     Business.PersonsInfo personController = new Business.PersonsInfo();
     return(personController.UpdateBlackListStatus(guid, isBlackList));
 }
예제 #4
0
 public static int GetCount(Guid zoneGuid, string prefix, string zipcode, Business.NumberType type, int opt)
 {
     Business.PersonsInfo personController = new Business.PersonsInfo();
     return(personController.GetCount(zoneGuid, prefix, zipcode, type, opt));
 }