public ArticleController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, Miaow.Application.jq.Service.IArticleService article, Miaow.Domain.Repository.IArticleCommRepository articleComm) : base(work) { if (article == null) { throw new ArgumentNullException("articleService is null"); } if (articleComm == null) { throw new ArgumentNullException("articleCommRepository is null"); } articleService = article; articleCommRepository = articleComm; }
public SightOtherController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, Miaow.Application.jq.Service.ITicketService MiaowTicket, Miaow.Application.jq.Service.IPicInfoService MiaowPicInfo, Miaow.Application.jq.Service.IArticleService MiaowArticle) : base(work) { if (MiaowTicket == null) { throw new ArgumentNullException("ticketService is null"); } if (MiaowPicInfo == null) { throw new ArgumentNullException("picInfoService is null"); } if (MiaowArticle == null) { throw new ArgumentNullException("articleService is null"); } ticketService = MiaowTicket; picInfoService = MiaowPicInfo; articleService = MiaowArticle; }