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