public NotificationSendLogRow CreateNotificationMessage(Notification notification,
                                                                 string composedContent,
                                                                 string composedSubject,
                                                                 NotificationRecipient rec,
                                                                 NotificationMessageTemplateTypeDictionary notificationMessageTemplateType,
                                                                 Guid tryGroupId)
        {
            var status = SendStatusDictionary.ErrorOnCompose;
            string sendedSubject = "";
            string sendedContent = "";

            if (composedContent != null && composedSubject != null)
            {
                status = SendStatusDictionary.NeedToSend;
                sendedSubject = composedSubject;
                sendedContent = composedContent;
            }

            var rez = new NotificationSendLogRow
            {
                Notification = notification,
                Recipient = rec,
                SendDateTime = DateTime.Now,
                SendTryGroupId = tryGroupId,
                SendType = notificationMessageTemplateType,
                SendStatus = status,
                SendedSubject = sendedSubject,
                SendedContent = sendedContent,
            };
            return rez;
        }
 public Guid SaveNotificationSendLogRow(NotificationSendLogRow sendLogRow)
 {
     return Uow.Save<NotificationSendLogRow, IRepository<NotificationSendLogRow>>(sendLogRow);
 }