public async Task <IActionResult> DeleteLicense(DeleteLicenseCommand command) { var result = await _mediator.Send(command); return(result.IsSuccess ? Ok() : (IActionResult)NotFound(result.Error)); }
public async Task <ActionResult <bool> > Delete(DeleteLicenseCommand command) { return(Ok(await Mediator.Send(command))); }