public IActionResult GetById(int id)
 {
     if (id != 0)
     {
         ProductDto stock = _productApplicationService.GetProductById(id);
         return(Ok(stock));
     }
     return(BadRequest());
 }
Exemple #2
0
        public async Task <ActionResult <ProductResponseViewModel> > GetById(Guid id)
        {
            var productViewModel = await _productApplicationService.GetProductById(id);

            return(Response(productViewModel));
        }