public async Task <IHttpActionResult> Put(RejectShopAcceptorCommand command)
        {
            var response =
                await Bus.Send <RejectShopAcceptorCommand, RejectShopAcceptorCommandResponse>(command);

            return(Ok(response));
        }
        public async Task <RejectShopAcceptorCommandResponse> Handle(RejectShopAcceptorCommand command)
        {
            var shopAcceptorAddress = await _repository.AsQuery().SingleOrDefaultAsync(p => p.Id == command.Id);

            if (shopAcceptorAddress == null)
            {
                throw new DomainException("درخواست ثبت فروشگاه یافت نشد");
            }
            shopAcceptorAddress.ShopAcceptorStatus = ShopAcceptorStatus.Reject;
            return(new RejectShopAcceptorCommandResponse());
        }