public void AddInventoryProduct(AddItemRequestDto request)
        {
            Product product = _productService.GetProductById(request.ProductId);

            InventoryProduct inventoryProduct = new InventoryProduct
            {
                InventoryId = request.InventoryId,
                ProductId   = product.Id,
                ZoneId      = request.ZoneId,
                ScannedDate = DateTime.Now
            };

            AddInventoryProduct(inventoryProduct);
        }
Example #2
0
 public ActionResult AddInventoryProduct([FromBody] AddItemRequestDto request)
 {
     _inventoryService.AddInventoryProduct(request);
     return(Ok(request));
 }