/// <summary>
        /// Adds the object to the notification queue.
        /// </summary>
        /// <param name="request">Request to be added to notification queue.</param>
        public static void AddToNotificationQueue(this object request)
        {
            IQueueRepository  queueRepository = DependencyResolver.Current.GetService(typeof(IQueueRepository)) as IQueueRepository;
            CloudQueueMessage message         = queueRepository.Pack(request);

            queueRepository.NotificationQueue.AddMessage(message);
        }
        private void SendMail(object notification)
        {
            var message = _queueRepository.Pack(notification);

            _queueRepository.NotificationQueue.AddMessage(message);
        }