public static int Fetch_Total_Comments(long id, string profileid, int type) { int TotalComments = 0; if (profileid != "") { TotalComments = Convert.ToInt32(members.Return_Value(profileid, "comments")); } else { switch (type) { //case 0: // // videos; // // update video comment statistic // TotalComments = Convert.ToInt32(VideoBLL.Get_Field_Value(id, "comments")); // break; //case 1: // // blogs // TotalComments = Convert.ToInt32(BlogsBLL.Get_Field_Value(id, "comments")); // break; //case 2: // // photos // TotalComments = Convert.ToInt32(PhotosBLLC.Get_Field_Value(id, "comments")); // break; //case 3: // // photo gallerys // TotalComments = Convert.ToInt32(GalleryBLLC.Get_Field_Value(id, "comments")); // break; //case 11: // // QA Question // TotalComments = Convert.ToInt32(QABLL.Get_Field_Value(id, "comments")); // break; //case 13: // // group posts // TotalComments = Convert.ToInt32(Group_Post_BLL.Get_Field_Value(id, "comments")); // break; //case 12: // // QA Answer // TotalComments = Convert.ToInt32(QAnswersBLL.Get_Field_Value(id, "comments")); // break; case 14: // User Activities TotalComments = Convert.ToInt32(ActivityBLL.Get_Field_Value(id, "comments")); break; } } return(TotalComments); }