public DataTable SaveProduct(List<string> mainProductList) { ProductDAL product = new ProductDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(true); DataTable dt = product.SaveProduct(this, db); //dt.Columns.Add("ProductId"); if (dt.Rows.Count > 0) { ProductId = dt.Rows[0][0].ToString(); } if (mainProductList.Count > 0) { product.SaveMainProductOfSubProduct(ProductId, mainProductList, db); } db.Stop(); return dt; } catch (Exception) { throw; } finally { product = null; } }