示例#1
0
        public DataSet GetCategoryEmployeeNames(clsCategory objClsCategory)
        {
            try
            {
                clsDLCategory objclsDLCategory = new clsDLCategory();
                return(objclsDLCategory.GetCategoryEmployeeNames(objClsCategory));
            }
            catch (V2Exceptions ex)
            {
                throw;
            }

            catch (System.Exception ex)
            {
                FileLog objFileLog = FileLog.GetLogger();
                objFileLog.WriteLine(LogType.Error, ex.Message, "clsBLCategory.cs", "GetCategoryEmployeeNames", ex.StackTrace);
                throw new V2Exceptions();
            }
        }
示例#2
0
        public int DoesExist(clsCategory objClsCategory)
        {
            try
            {
                clsDLCategory objClsDLCategory = new clsDLCategory();
                return(objClsDLCategory.DoesExist(objClsCategory));
            }
            catch (V2Exceptions ex)
            {
                throw;
            }

            catch (System.Exception ex)
            {
                FileLog objFileLog = FileLog.GetLogger();
                objFileLog.WriteLine(LogType.Error, ex.Message, "clsBLCategory.cs", "DoesExist", ex.StackTrace);
                throw new V2Exceptions();
            }
        }
示例#3
0
        public DataSet getCategories()
        {
            try
            {
                clsDLCategory objclsDLCategory = new clsDLCategory();
                return(objclsDLCategory.getCategories());
            }
            catch (V2Exceptions ex)
            {
                throw;
            }

            catch (System.Exception ex)
            {
                FileLog objFileLog = FileLog.GetLogger();
                objFileLog.WriteLine(LogType.Error, ex.Message, "clsBLCategory.cs", "getCategories", ex.StackTrace);
                throw new V2Exceptions(ex.ToString(), ex);
            }
        }
示例#4
0
        public int updateCategories(clsCategory objClsCategories)
        {
            try
            {
                clsDLCategory objclsDLCategories = new clsDLCategory();
                return(objclsDLCategories.upDateCategories(objClsCategories));
            }
            catch (V2Exceptions ex)
            {
                throw;
            }

            catch (System.Exception ex)
            {
                FileLog objFileLog = FileLog.GetLogger();
                objFileLog.WriteLine(LogType.Error, ex.Message, "clsBLCategory.cs", "updateCategories", ex.StackTrace);
                throw new V2Exceptions();
            }
        }
示例#5
0
        public int InsertCategory(clsCategory objClsCategory)
        {
            try
            {
                clsDLCategory objClsDLCategory = new clsDLCategory();
                return(objClsDLCategory.InsertCategory(objClsCategory));
            }
            catch (V2Exceptions ex)
            {
                throw;
            }

            catch (System.Exception ex)
            {
                FileLog objFileLog = FileLog.GetLogger();
                objFileLog.WriteLine(LogType.Error, ex.Message, "clsBLCategory.cs", "InsertCategory", ex.StackTrace);
                throw new V2Exceptions(ex.ToString(), ex);
            }
        }