using System; using System.Collections.Generic; using System.Linq; using System.Text; using Tea.DAL; using Tea.Model; using ServerControl; using System.Data.SqlClient;
namespace Tea.BLL { public class ArticleManager { public bool AddArticle(Article article) { ArticleService ns = new ArticleService(); return ns.AddArticle(article); } public static List GetNewsByarticleTypeId(DefaultUrlManager manager) { manager.TableName = “Articles“; manager.PrimaryKey = “Id“; manager.RecordCount = ArticleService.GetNewsCount(manager); return ArticleService.GetNewsByarticleTypeId(manager); } public static void DelArticleByIdAndAuthorId(int id) { ArticleService.DelArticleByIdAndAuthorId(id); } public static void UpdataArticle(Article article) { ArticleService.UpdataArticle(article);
} public static List GetArticleBySql(string sqlSqlParameter[] para) { return ArticleService.GetArticleBySql(sqlpara); } public static List GetArticle(int articleTypeId) { return ArticleService.GetArticle(articleTypeId); } public static Article GetArticleById(int id) { return ArticleService.GetArticleById(id); } public static List GetArticleForCompany(int articleTypeId) { return ArticleService.GetArticleForCompany(articleTypeId); } public static List GetArticleForFive(int articleTypeId) { return ArticleService.GetArticleForFive(articleTypeId); } public static List GetArticleAll() { return ArticleService.GetArticleAll(); } } }
评论
共有 条评论