public async Task <IActionResult> DeleteAsync(string Name) { var createCommand = new DeleteRole.Command(Name); var res = await _mediator.Send(createCommand); return(Ok(res)); }
public async Task <ActionResult> Delete(DeleteRole.Command command) { await _mediator.Send(command); return(RedirectToAction(nameof(Index))); }