Пример #1
0
 public async Task <ActionResult <SimpleNamedEntity> > Create(CreateRole.Command data)
 {
     return(HttpResponse <SimpleNamedEntity>(await Mediator.Send(data)));
 }
Пример #2
0
        public async Task <ActionResult <SimpleNamedEntity> > CreateRole([FromBody] CreateRole.Command data)
        {
            var result = await Mediator.Send(data);

            return(HttpResponse <SimpleNamedEntity>(result));
        }