public async Task <CreateOfferAuctionResponse> Handle(CreateOfferAuctionRequest request, CancellationToken cancellationToken) { var offerAuction = await auctionManager.CreateAuction(request.NewPrice, request.OfferId); if (offerAuction != null) { var notification = await notifier.Push(NotificationMessages.NewOfferPriceProposedMessage(request.NewPrice, request.OfferId), offerAuction.Offer.OwnerId); await hubManager.Invoke(SignalrActions.NOTIFICATION_RECEIVED, offerAuction.Offer.OwnerId, mapper.Map <NotificationDto>(notification)); return(new CreateOfferAuctionResponse { OfferAuction = mapper.Map <OfferAuctionDto>(offerAuction) }); } throw new CrudException("Creating offer auction failed"); }