Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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);
            }
        }