示例#1
0
        /// <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);
        }
示例#2
0
 public static Class GetClass(this Question qs)
 {
     return(ClassView.GetModelByID(qs.ClassID.ToS()));
 }
示例#3
0
 public static Class GetClass(this ImageAlbum album)
 {
     return(ClassView.GetModelByID(album.ClassID.ToS()));
 }
示例#4
0
 public static Class GetClass(BookChapter bc)
 {
     return(ClassView.GetModelByID(bc.ClassID.ToS()));
 }
示例#5
0
 public static Class GetClass(Book b)
 {
     return(ClassView.GetModelByID(b.ClassID.ToS()));
 }
示例#6
0
 public static Class GetClass(MovieDrama mu)
 {
     return(ClassView.GetModelByID(MovieInfoView.GetModelByID(mu.MovieID.ToS()).ClassID.ToS()));
 }
示例#7
0
 public static Class GetClass(MovieInfo m)
 {
     return(ClassView.GetModelByID(m.ClassID.ToS()));
 }
示例#8
0
 public static List <Class> GetSubClass(Class cls)
 {
     return(ClassView.GetModelList(string.Format("ParentID={0}", cls.ID)));
 }