public async Task <ActionResult <SimpleNamedEntity> > Create(CreateRole.Command data) { return(HttpResponse <SimpleNamedEntity>(await Mediator.Send(data))); }
public async Task <ActionResult <SimpleNamedEntity> > CreateRole([FromBody] CreateRole.Command data) { var result = await Mediator.Send(data); return(HttpResponse <SimpleNamedEntity>(result)); }