Пример #1
0
        public void Delete(Guid id)
        {
            DeleteRentCommand deleteRentCommand = new DeleteRentCommand(id);

            QueueSender.Send(deleteRentCommand);
        }
 public void Handle(DeleteRentCommand command)
 {
     _RentService.Delete(command.Id);
     _RentService.Complete();
 }
        public async Task <ActionResult> DeleteRent([FromBody] DeleteRentCommand command)
        {
            await _Mediator.Send(command);

            return(NoContent());
        }