public IActionResult Get([FromQuery] SearchRoleDTO search, [FromServices] IGetRoleQuery query) { return(Ok(_executor.ExecuteQuery(query, search))); }
public IActionResult Get(int id, [FromServices] IGetRoleQuery query) { return(Ok(_executor.ExecuteQuery(query, id))); }