public IActionResult Get(
            [FromQuery] GenreSerach search,
            [FromServices] IGetGenresQuery query)
        {
            var result = _executor.ExecuteQuery(query, search);

            return(Ok(result));
        }
Exemple #2
0
 public IActionResult Get([FromQuery] GenreSearch search,
                          [FromServices] IGetGenresQuery query)
 {
     return(Ok(executor.ExecuteQuery(query, search)));
 }