コード例 #1
0
 // update comment statistics version 2.0 -> more scalable
 public static void Update_Comment_Statistics(long id, int type, int comments)
 {
     switch (type)
     {
     //case 0:
     //    // videos;
     //    // update video comment statistic
     //    VideoBLL.Update_Field(id, comments.ToString(), "comments");
     //    break;
     //case 1:
     //    // blogs
     //    BlogsBLL.Update_Field(id, comments.ToString(),"comments");
     //    break;
     //case 2:
     //    // photos
     //    // update photo comment statistic
     //    PhotosBLLC.Update_Field(id, comments.ToString(), "comments"); // update photo comments
     //    break;
     //case 3:
     //    // photo gallerys
     //    GalleryBLLC.Update_Field(id, comments.ToString(),"comments"); // update gallery comments
     //    break;
     //case 11:
     //    // QA Question
     //    QABLL.Update_Field(id, comments.ToString(), "comments");
     //    break;
     //case 13:
     //    // group posts
     //    Group_Post_BLL.Update_Field(id, comments,"comments");
     //    break;
     //case 12:
     //    // QA Anser
     //    QAnswersBLL.Update_Field(id, comments.ToString(), "comments");
     //    break;
     case 14:
         // User Channel Activities
         ActivityBLL.Update_Field(id, comments.ToString(), "comments");
         break;
     }
 }