public async Task <ActionResult <Products> > Add(Products newProducts)
        {
            _context.Products.Add(newProducts);
            await _context.SaveChangesAsync();

            return(new OkObjectResult(new Products {
                Prod_Id = newProducts.Prod_Id, Name = newProducts.Name
            }));
        }
 public async Task SaveAsync(Inventory inventory)
 {
     try
     {
         dbContext.Inventories.Add(inventory);
         await dbContext.SaveChangesAsync();
     }
     catch (Exception ex)
     {
         LogException.Log(ex);
     }
 }