Exemplo n.º 1
0
 public PicController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Application.jq.Service.IPicInfoService MiaowPicInfo,
     Miaow.Domain.Repository.IPicCommRepository picComm)
     : base(work)
 {
     if (MiaowPicInfo == null)
     {
         throw new ArgumentNullException("picInfoService is null");
     }
     if (picComm == null)
     {
         throw new ArgumentNullException("picInfoRepository is null");
     }
     picInfoService = MiaowPicInfo;
     picCommRepository = picComm;
 }
Exemplo n.º 2
0
 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;
 }