public async Task <IHttpActionResult> Close(IdModel model) { var userId = long.Parse(User.Identity.GetUserId()); await _wishRepository.CloseWish((long)model.Id, userId, model.CloserId); await _notificationService.SentNotificationToQueue(new CloseItemQueueNotification() { CreatorId = userId, TargetType = "wish", ClosedItemId = (long)model.Id }); if (model.CloserId != null) { await _notificationService.SentNotificationToQueue(new TotalClosedQueueNotification() { CreatorId = userId, CloserId = (long)model.CloserId, ClosedWishId = (long)model.Id }); } return(SuccessApiResult(null)); }