public static bool DeleteHelpCategory(int categoryId) { HelpCategoryInfo helpCategoryInfo = new HelpCategoryInfo(); helpCategoryInfo.CategoryId = new int?(categoryId); return(SubsiteCommentsProvider.Instance().CreateUpdateDeleteHelpCategory(helpCategoryInfo, DataProviderAction.Delete)); }
public static bool DeleteArticleCategory(int categoryId) { ArticleCategoryInfo articleCategoryInfo = new ArticleCategoryInfo(); articleCategoryInfo.CategoryId = categoryId; return(SubsiteCommentsProvider.Instance().CreateUpdateDeleteArticleCategory(articleCategoryInfo, DataProviderAction.Delete)); }
public static int DeleteArticles(IList <int> articles) { if ((articles == null) || (articles.Count == 0)) { return(0); } return(SubsiteCommentsProvider.Instance().DeleteArticles(articles)); }
public static int DeleteReview(IList <int> reviews) { if ((reviews == null) || (reviews.Count == 0)) { return(0); } return(SubsiteCommentsProvider.Instance().DeleteReview(reviews)); }
public static int DeleteHelps(IList <int> helps) { if ((helps == null) || (helps.Count == 0)) { return(0); } return(SubsiteCommentsProvider.Instance().DeleteHelps(helps)); }
public static bool CreateHelpCategory(HelpCategoryInfo helpCategory) { if (null == helpCategory) { return(false); } Globals.EntityCoding(helpCategory, true); return(SubsiteCommentsProvider.Instance().CreateUpdateDeleteHelpCategory(helpCategory, DataProviderAction.Create)); }
public static bool UpdateHelp(HelpInfo help) { if (null == help) { return(false); } Globals.EntityCoding(help, true); return(SubsiteCommentsProvider.Instance().UpdateHelp(help)); }
public static bool UpdateArticleCategory(ArticleCategoryInfo articleCategory) { if (null == articleCategory) { return(false); } Globals.EntityCoding(articleCategory, true); return(SubsiteCommentsProvider.Instance().CreateUpdateDeleteArticleCategory(articleCategory, DataProviderAction.Update)); }
public static bool UpdateArticle(ArticleInfo article) { if (null == article) { return(false); } Globals.EntityCoding(article, true); return(SubsiteCommentsProvider.Instance().UpdateArticle(article)); }
public static bool CreateAffiche(AfficheInfo affiche) { if (null == affiche) { return(false); } Globals.EntityCoding(affiche, true); return(SubsiteCommentsProvider.Instance().AddAffiche(affiche)); }
public static int SendMessageToMember(IList <MessageBoxInfo> messageBoxInfos) { int num = 0; foreach (MessageBoxInfo current in messageBoxInfos) { if (SubsiteCommentsProvider.Instance().InsertMessage(current, UserRole.Member)) { num++; } } return(num); }
public static int DeleteHelps(IList <int> helps) { int result; if (helps == null || helps.Count == 0) { result = 0; } else { result = SubsiteCommentsProvider.Instance().DeleteHelps(helps); } return(result); }
public static int DeleteAffiches(List <int> affiches) { int result; if (affiches == null || affiches.Count == 0) { result = 0; } else { result = SubsiteCommentsProvider.Instance().DeleteAffiches(affiches); } return(result); }
public static int DeleteReview(IList <int> reviews) { int result; if (reviews == null || reviews.Count == 0) { result = 0; } else { result = SubsiteCommentsProvider.Instance().DeleteReview(reviews); } return(result); }
public static bool CreateArticle(ArticleInfo article) { bool result; if (null == article) { result = false; } else { Globals.EntityCoding(article, true); result = SubsiteCommentsProvider.Instance().AddArticle(article); } return(result); }
public static bool CreateArticleCategory(ArticleCategoryInfo articleCategory) { bool result; if (null == articleCategory) { result = false; } else { Globals.EntityCoding(articleCategory, true); result = SubsiteCommentsProvider.Instance().CreateUpdateDeleteArticleCategory(articleCategory, DataProviderAction.Create); } return(result); }
public static bool UpdateHelp(HelpInfo help) { bool result; if (null == help) { result = false; } else { Globals.EntityCoding(help, true); result = SubsiteCommentsProvider.Instance().UpdateHelp(help); } return(result); }
public static bool UpdateAffiche(AfficheInfo affiche) { bool result; if (null == affiche) { result = false; } else { Globals.EntityCoding(affiche, true); result = SubsiteCommentsProvider.Instance().UpdateAffiche(affiche); } return(result); }
public static int SendMessageToAdmin(IList <SendMessageInfo> sendMessageList, IList <ReceiveMessageInfo> receiveMessageList) { int num = 0; foreach (SendMessageInfo info in sendMessageList) { Globals.EntityCoding(info, true); SubsiteCommentsProvider.Instance().InsertSendMessageToAdmin(info); num++; } foreach (ReceiveMessageInfo info2 in receiveMessageList) { Globals.EntityCoding(info2, true); SubsiteCommentsProvider.Instance().InsertReceiveMessageToAdmin(info2); num++; } return(num); }
public static bool ReplyMessageToAdmin(SendMessageInfo reply) { IList <SendMessageInfo> sendMessageList = new List <SendMessageInfo>(); IList <ReceiveMessageInfo> receiveMessageList = new List <ReceiveMessageInfo>(); ReceiveMessageInfo item = new ReceiveMessageInfo(); item.Addressee = reply.Addressee; item.Addresser = reply.Addresser; item.Title = reply.Title; item.PublishContent = reply.PublishContent; item.PublishDate = DateTime.Now; sendMessageList.Add(reply); receiveMessageList.Add(item); if (SendMessageToAdmin(sendMessageList, receiveMessageList) > 0) { SubsiteCommentsProvider.Instance().PostMessageToAdminLastTime(reply.ReceiveMessageId.Value, item.PublishDate); } return(true); }
public static DbQueryResult GetArticleList(ArticleQuery articleQuery) { return(SubsiteCommentsProvider.Instance().GetArticleList(articleQuery)); }
public static ArticleInfo GetArticle(int articleId) { return(SubsiteCommentsProvider.Instance().GetArticle(articleId)); }
public static IList <ArticleCategoryInfo> GetMainArticleCategories() { return(SubsiteCommentsProvider.Instance().GetMainArticleCategories()); }
public static ArticleCategoryInfo GetArticleCategory(int categoryId) { return(SubsiteCommentsProvider.Instance().GetArticleCategory(categoryId)); }
public static bool DeleteAffiche(int afficheId) { return(SubsiteCommentsProvider.Instance().DeleteAffiche(afficheId)); }
public static DataTable GetReplyLeaveComments(long leaveId) { return(SubsiteCommentsProvider.Instance().GetReplyLeaveComments(leaveId)); }
public static int DeleteLeaveComments(IList <long> leaveIds) { return(SubsiteCommentsProvider.Instance().DeleteLeaveComments(leaveIds)); }
public static bool DeleteLeaveCommentReply(long leaveReplyId) { return(SubsiteCommentsProvider.Instance().DeleteLeaveCommentReply(leaveReplyId)); }
public static int ReplyLeaveComment(LeaveCommentReplyInfo leaveReply) { leaveReply.ReplyDate = DateTime.Now; return(SubsiteCommentsProvider.Instance().ReplyLeaveComment(leaveReply)); }
public static DbQueryResult GetLeaveComments(LeaveCommentQuery query) { return(SubsiteCommentsProvider.Instance().GetLeaveComments(query)); }