/// <summary> /// 获取新闻的栏目 /// </summary> /// <param name="news"></param> /// <returns></returns> public static Class GetNewsClass(News news) { Class c = ClassView.GetModelByID(news.ClassID.ToString()); news.Class = c; return(c); }
public static Class GetClass(this Question qs) { return(ClassView.GetModelByID(qs.ClassID.ToS())); }
public static Class GetClass(this ImageAlbum album) { return(ClassView.GetModelByID(album.ClassID.ToS())); }
public static Class GetClass(BookChapter bc) { return(ClassView.GetModelByID(bc.ClassID.ToS())); }
public static Class GetClass(Book b) { return(ClassView.GetModelByID(b.ClassID.ToS())); }
public static Class GetClass(MovieDrama mu) { return(ClassView.GetModelByID(MovieInfoView.GetModelByID(mu.MovieID.ToS()).ClassID.ToS())); }
public static Class GetClass(MovieInfo m) { return(ClassView.GetModelByID(m.ClassID.ToS())); }
public static List <Class> GetSubClass(Class cls) { return(ClassView.GetModelList(string.Format("ParentID={0}", cls.ID))); }