// [Authorize(Roles = "Admin")] //[Authorize(Policy = Permissions.Categories.Create)] public async Task <IActionResult> Post(CreateAttributeCommand command) { return(Ok(await _mediator.Send(command))); }
public async Task <IProcessResult <int> > Post(CreateAttributeCommand command) => await mediator.Send(command);