public IActionResult GetStocks([FromServices] GetStock getStock) =>
 Ok(getStock.Do());
Exemplo n.º 2
0
 public IActionResult GetProductStock(int id, [FromServices] GetStock getStock) =>
 Ok(getStock.ForProduct(id));
Exemplo n.º 3
0
 public IActionResult GetStock([FromServices] GetStock getStock, int id) =>
 Ok(getStock.Do(id));
Exemplo n.º 4
0
 public IActionResult GetStocks(
     [FromServices] GetStock getStock,
     int pageNumber = 1, int pageSize = 1) =>
 Ok(getStock.Do(pageNumber, pageSize));
Exemplo n.º 5
0
 public IActionResult GetStock([FromServices] GetStock getStock)
 {
     return(Ok(getStock.Exec()));
 }