public async Task <IActionResult> DeleteAsync(string Name)
        {
            var createCommand = new DeleteRole.Command(Name);
            var res           = await _mediator.Send(createCommand);

            return(Ok(res));
        }
Esempio n. 2
0
        public async Task <ActionResult> Delete(DeleteRole.Command command)
        {
            await _mediator.Send(command);

            return(RedirectToAction(nameof(Index)));
        }