//-------------------------------------------------------------- public static List <MediaGroups> Static_GetListAllOrderBy(string ConStr, string OrderBy, string TextOptionAll = "...") { List <MediaGroups> RetVal = new List <MediaGroups>(); MediaGroups m_MediaGroups = new MediaGroups(ConStr); try { OrderBy = StringUtil.InjectionString(OrderBy).Trim(); if (OrderBy.Length > 0) { RetVal = m_MediaGroups.GetListOrderBy(OrderBy); } TextOptionAll = (TextOptionAll == null) ? "" : TextOptionAll.Trim(); if (TextOptionAll.Length > 0) { m_MediaGroups.MediaGroupName = TextOptionAll; m_MediaGroups.MediaGroupDesc = TextOptionAll; RetVal.Insert(0, m_MediaGroups); } } catch (Exception ex) { throw ex; } return(RetVal); }
//-------------------------------------------------------------- public static List <MediaGroups> Static_GetListOrderBy(string ConStr, string OrderBy) { MediaGroups m_MediaGroups = new MediaGroups(ConStr); return(m_MediaGroups.GetListOrderBy(OrderBy)); }