예제 #1
0
        public IActionResult Put(int id, UserNotificationDto notificationDto)
        {
            var notification = _mapper.Map <UserNotification>(notificationDto);

            notification.Id = id;

            var result   = _notificationService.UpdateNotification(notification);
            var response = new ApiResponse <bool>(result);

            return(Ok(response));
        }