public NotificationsDTOs InsertNotification(NotificationsDTOs ntd) { Notification nttd = NotificationRequestFormatter.ConvertRespondentInfoFromDTO(ntd); return(NotificationRequestFormatter.ConvertRespondentToDTO(_unitOfWork.NotificationRepository.Create(nttd))); }
public int UpdateNotification(NotificationsDTOs ntd) { Notification ntf = NotificationRequestFormatter.ConvertRespondentInfoFromDTO(ntd); return(_unitOfWork.NotificationRepository.Update(ntf)); }