Ejemplo n.º 1
0
 private void ErrorMailSend(MemberTermByAbsenceFilter filter, ILogger logger)
 {
     try
     {
         var fileNotPostedModel = _emailNotificationModelsFactory.GetAbsenceByMemberViewModel(filter.Tag, filter.CorporateUploadId);
         _notifier.NotifySubscribersViaEmail(NotificationTypeAlias.AbsenceByMember, EmailTemplateAlias.AbsenceByMember, fileNotPostedModel, 0, 1, "Absence By Member");
     }
     catch (Exception ex)
     {
         logger.Error("Error while sending File Not Posted notification");
         logger.Error("Message:" + ex.Message);
         logger.Error("Stack Trace:" + ex.StackTrace);
     }
 }