public string GetPSCategoryContentList(string tcCode)
        {
            ICategoryContentDAL conDAL = new CategoryContentsDAL();
            string result = conDAL.GetPSCategoryContentList(tcCode);

            return(result);
        }
        /// <summary>
        /// This method is used to get category contents associated with category
        /// </summary>
        /// <param name="catID"></param>
        /// <returns></returns>
        public List <ContentModel> GetCategoryContent(int catID)
        {
            ICategoryContentDAL conDAL = new CategoryContentsDAL();
            List <ContentModel> result = conDAL.GetCategoryContentList(catID);
            string format = conDAL.GetNumberFormat();

            if (format == string.Empty || format == null)
            {
                format = "en-IN";
            }

            foreach (var item in result)
            {
                if (item.CategoryCode.Trim() == "CCLD")
                {
                    item.ContentName = item.ContentName + " " + item.ContentType;
                }

                if (item.CategoryCode.Trim() == "CD")
                {
                    item.ContentName = item.ContentName + " " + "%";
                }
                if (item.CategoryCode.Trim() == "CCLA")
                {
                    long abc = Convert.ToInt64(item.ContentName);
                    //  item.ContentName = abc.ToString("C", new CultureInfo("en-IN"));
                    item.ContentName = abc.ToString("C", new CultureInfo(format));
                    var culture      = CultureInfo.GetCultureInfo(format);
                    var numberFormat = (NumberFormatInfo)culture.NumberFormat.Clone();
                    // Force the currency symbol regardless of culture

                    item.ContentName = item.ContentName.Replace(numberFormat.CurrencySymbol, "");
                    string[] str = item.ContentName.Split('.');
                    item.ContentName = str[0];
                }
            }
            return(result);
        }
        public string GetNumberFormat()
        {
            ICategoryContentDAL conDAL = new CategoryContentsDAL();

            return(conDAL.GetNumberFormat());
        }