public void Update(RentItemViewModel RentItemViewModel) { UpdateRentItemCommand updateRentItemCommand = new UpdateRentItemCommand(_mapper.Map <RentItem>(RentItemViewModel)); QueueSender.Send(updateRentItemCommand); }
//public void Handle(CreateRentItemCommand command) //{ // _RentItemService.Create(command.RentItem); // _RentItemService.Complete(); //} public void Handle(UpdateRentItemCommand command) { _RentItemService.Update(command.RentItem); _RentItemService.Complete(); }