public IActionResult GetStocks([FromServices] GetStock getStock) => Ok(getStock.Do());
public IActionResult GetProductStock(int id, [FromServices] GetStock getStock) => Ok(getStock.ForProduct(id));
public IActionResult GetStock([FromServices] GetStock getStock, int id) => Ok(getStock.Do(id));
public IActionResult GetStocks( [FromServices] GetStock getStock, int pageNumber = 1, int pageSize = 1) => Ok(getStock.Do(pageNumber, pageSize));
public IActionResult GetStock([FromServices] GetStock getStock) { return(Ok(getStock.Exec())); }