コード例 #1
0
        public void Update(RentViewModel RentViewModel)
        {
            UpdateRentCommand updateRentCommand = new UpdateRentCommand(_mapper.Map <Rent>(RentViewModel));

            QueueSender.Send(updateRentCommand);
        }
コード例 #2
0
 public void Handle(UpdateRentCommand command)
 {
     _RentService.Update(command.Rent);
     _RentService.Complete();
 }
コード例 #3
0
        public async Task <ActionResult> UpdateRent([FromBody] UpdateRentCommand command)
        {
            await _Mediator.Send(command);

            return(NoContent());
        }