public async Task <IHttpActionResult> Close(IdModel model) { var userId = long.Parse(User.Identity.GetUserId()); await _giftRepository.CloseGift((long)model.Id, userId); await _notificationService.SentNotificationToQueue(new CloseItemQueueNotification() { CreatorId = userId, TargetType = "gift" }); return(SuccessApiResult(null)); }