示例#1
0
        public static int AddBrand(LTS.Brand brand)
        {
            int?BrandID = -1;

            try
            {
                using (LTS.LTSBase access = new LTS.LTSDC())
                {
                    access.InsertBrand(brand.BrandDescription, brand.BrandName, ref BrandID);
                }
            }
            catch (Exception ex)
            {
            }
            return(BrandID.Value);
        }