예제 #1
0
        public static int AddCategory(LTS.Category category)
        {
            int?CategoryID = -1;

            try
            {
                using (LTS.LTSBase access = new LTS.LTSDC())
                {
                    access.InsertCategory(category.CategoryDescription, category.CategoryName, ref CategoryID);
                }
            }
            catch (Exception ex)
            {
            }
            return(CategoryID.Value);
        }