public IActionResult Get(int id, [FromServices] IGetReservationQuery query) { var result = _executor.ExecuteQuery(query, id); return(Ok(result)); }
public IActionResult Get([FromQuery] ReservationSearch search, [FromServices] IGetReservationQuery query) { return(Ok(executor.ExecuteQuery(query, search))); }