Esempio n. 1
0
        /// <summary>
        /// To Edit database
        /// </summary>
        /// <param name="SubCategoryBOobj"></param>
        /// <returns></returns>
        public string Edit(SubCategoryBO SubCategoryBOobj)
        {
            SubCategoryDAL SubCategoryDALobj = new SubCategoryDAL(); //Data pass -to Database Layer

            try
            {
                return(SubCategoryDALobj.Edit(SubCategoryBOobj));
            }
            catch
            {
                throw;
            }
            finally
            {
                SubCategoryDALobj = null;
            }
        }
Esempio n. 2
0
 public SubCategoryApiController()
 {
     objCategoryDAL = new SubCategoryDAL();
     objErrorLogger = new ErrorLogger();
 }
Esempio n. 3
0
        /// <summary>
        /// To Delete Sub Category
        /// </summary>
        /// <param name="SubCATEGORYID"></param>
        /// <returns></returns>
        public string DeleteSubCategory(int SubCATEGORYID)
        {
            SubCategoryDAL SubCategoryDALobj = new SubCategoryDAL(); //Data pass -to Database Layer

            return(SubCategoryDALobj.DeleteSubCategory(SubCATEGORYID));
        }
Esempio n. 4
0
        /// <summary>
        /// To To Get Sub Category By Id
        /// </summary>
        /// <param name="SubCATEGORYID"></param>
        /// <returns></returns>
        public SubCategoryBO GetSubCategoryById(int SubCATEGORYID)
        {
            SubCategoryDAL SubCategoryDALobj = new SubCategoryDAL(); //Data pass -to Database Layer

            return(SubCategoryDALobj.GetSubCategoryById(SubCATEGORYID));
        }
Esempio n. 5
0
        /// <summary>
        /// To Get Sub Category
        /// </summary>
        /// <returns></returns>
        public SubCategoryList GetSubCategory()
        {
            SubCategoryDAL SubCategoryDALobj = new SubCategoryDAL(); //Data pass -to Database Layer

            return(SubCategoryDALobj.GetSubCategory());
        }
Esempio n. 6
0
        /// <summary>
        /// To Get ALL Sub Category
        /// </summary>
        /// <param name="categoryID"></param>
        /// <returns></returns>
        public SubCategoryList GetALLSubCategory(int categoryID)
        {
            SubCategoryDAL SubCategoryDALobj = new SubCategoryDAL(); //Data pass -to Database Layer

            return(SubCategoryDALobj.GetALLSubCategory(categoryID));
        }
Esempio n. 7
0
        /// <summary>
        /// To Obsolete Sub Category
        /// </summary>
        /// <param name="SubCATEGORYID"></param>
        /// <param name="IsDeleted"></param>
        /// <returns></returns>
        public string ObsoleteSubCategory(int SubCATEGORYID, string IsDeleted)
        {
            SubCategoryDAL SubCategoryDALobj = new SubCategoryDAL(); //Data pass -to Database Layer

            return(SubCategoryDALobj.ObsoleteSubCategory(SubCATEGORYID, IsDeleted));
        }