//-------------------------------------------------------------- public static List <MediaTypes> Static_GetListAll(string ConStr, string TextOptionAll = "...") { MediaTypes m_MediaTypes = new MediaTypes(ConStr); List <MediaTypes> RetVal = m_MediaTypes.GetList(); TextOptionAll = (TextOptionAll == null) ? "" : TextOptionAll.Trim(); if (TextOptionAll.Length > 0) { m_MediaTypes.MediaTypeName = TextOptionAll; m_MediaTypes.MediaTypeDesc = TextOptionAll; RetVal.Insert(0, m_MediaTypes); } return(RetVal); }
//-------------------------------------------------------------- public static List <MediaTypes> Static_GetList(string ConStr) { List <MediaTypes> RetVal = new List <MediaTypes>(); try { MediaTypes m_MediaTypes = new MediaTypes(ConStr); RetVal = m_MediaTypes.GetList(); } catch (Exception ex) { throw ex; } return(RetVal); }