Example #1
0
 public async Task <ActionResult <Unit> > DeleteMany([FromBody] DeleteManyCommand data) => await Mediator.Send(data);
 public async Task <ResponseResult> Handle(DeleteManyCommand request, CancellationToken cancellationToken)
 {
     _repository.IncludeInTrasation(_unitOfWork);
     _repository.BulkDelete(request.Albums);
     return(new ResponseResult(null, this));
 }