예제 #1
0
파일: Countries.cs 프로젝트: hieuhan/hCMS
        //--------------------------------------------------------------
        public static List <Countries> Static_GetListAllOrderBy(string ConStr, string OrderBy, string TextOptionAll = "...")
        {
            List <Countries> RetVal      = new List <Countries>();
            Countries        m_Countries = new Countries(ConStr);

            try
            {
                OrderBy = StringUtil.InjectionString(OrderBy).Trim();
                if (OrderBy.Length > 0)
                {
                    RetVal = m_Countries.GetListOrderBy(OrderBy);
                }
                TextOptionAll = (TextOptionAll == null) ? "" : TextOptionAll.Trim();
                if (TextOptionAll.Length > 0)
                {
                    m_Countries.CountryName = TextOptionAll;
                    m_Countries.CountryDesc = TextOptionAll;
                    RetVal.Insert(0, m_Countries);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(RetVal);
        }
예제 #2
0
파일: Countries.cs 프로젝트: hieuhan/hCMS
        //--------------------------------------------------------------
        public static List <Countries> Static_GetListOrderBy(string ConStr, string OrderBy)
        {
            Countries m_Countries = new Countries(ConStr);

            return(m_Countries.GetListOrderBy(OrderBy));
        }