public bool InventoryCreateWithStatusSave(ProductInventory inv) { bool result = ProductInventories.Create(inv); if (result) { UpdateProductVisibleStatusAndSave(inv.ProductBvin); } return(result); }