/// <summary>
        /// Update email queue
        /// </summary>
        /// <param name="emailQueueVM"></param>
        /// <returns></returns>
        public int UpdateEmailQueue(EmailQueueVM emailQueueVM)
        {
            var emailNotificationServiceBLL = new EmailNotificationServiceBLL();
            Mapper.CreateMap<EmailQueueVM, EmailQueueBO>();

            var emailQueueBO = new EmailQueueBO();
            emailQueueBO = Mapper.Map<EmailQueueVM, EmailQueueBO>(emailQueueVM);
            return emailNotificationServiceBLL.UpdateEmailQueue(emailQueueBO);
        }
 /// <summary>
 /// Get list of pending email queue
 /// </summary>
 /// <returns></returns>
 public List<EmailQueueVM> GetPendingEmailQueue()
 {
     var emailNotificationServiceBLL = new EmailNotificationServiceBLL();
     Mapper.CreateMap<EmailQueueBO, EmailQueueVM>();
     return Mapper.Map(emailNotificationServiceBLL.GetPendingEmailQueue(), new List<EmailQueueVM>());
 }
        /// <summary>
        /// Saves email log and remove email queue
        /// </summary>
        /// <param name="emailLogVM"></param>
        /// <returns>int</returns>
        public int SaveEmailLog(EmailLogVM emailLogVM, int emailQueueId)
        {
            var emailNotificationServiceBLL = new EmailNotificationServiceBLL();
            Mapper.CreateMap<EmailLogVM, EmailLogBO>();

            var emailLogBO = new EmailLogBO();
            emailLogBO = Mapper.Map<EmailLogVM, EmailLogBO>(emailLogVM);
            return emailNotificationServiceBLL.SaveEmailLog(emailLogBO, emailQueueId);
        }