Пример #1
0
 /// <summary>
 /// Instantiates a new RemoteManager without a context Event and with the configured default mandator
 /// </summary>
 /// <param name="mobileNumber"></param>
 public RemoteManager(string mobileNumber)
 {
     bll = new EventSiteBL(EventSiteBL.GetDefaultMandator());
     if (!mobileNumber.StartsWith("+"))
     {
         mobileNumber = "+" + mobileNumber;
     }
     senderContact = bll.GetContactByMobileNumber(mobileNumber);
 }
Пример #2
0
        /// <summary>
        /// The constructor of RemoteManager which instantiates a new bll and a new contact
        /// </summary>
        /// <param name="eventId">The event id to subscribe</param>
        /// <param name="mobileNumber">The subscriber's mobile number</param>
        public RemoteManager(string mobileNumber, int eventId)
        {
            contextEvent = EventSiteBL.GetEventById(eventId);
            Mandator mand = contextEvent.EventCategory.Mandator;

            bll = new EventSiteBL(mand);
            if (!mobileNumber.StartsWith("+"))
            {
                mobileNumber = "+" + mobileNumber;
            }
            senderContact = bll.GetContactByMobileNumber(mobileNumber);
        }