public void Update(RentViewModel RentViewModel) { UpdateRentCommand updateRentCommand = new UpdateRentCommand(_mapper.Map <Rent>(RentViewModel)); QueueSender.Send(updateRentCommand); }
public void Handle(UpdateRentCommand command) { _RentService.Update(command.Rent); _RentService.Complete(); }
public async Task <ActionResult> UpdateRent([FromBody] UpdateRentCommand command) { await _Mediator.Send(command); return(NoContent()); }