Пример #1
0
        public Task <int> CreateOrUpdateAsync(CreateOrUpdateNotification model)
        {
            var notification = _mapper.Map <Notification>(model);

            notification.CreatedDate = notification.ModifiedDate = DateTime.UtcNow;

            return(_notificationsRepository.CreateOrUpdateAsync(notification));
        }