Ejemplo n.º 1
0
        public GroupCampaignAccountContentViewModel(IEnumerable <CampaignAccountContent> campaignAccountContents)
        {
            var query        = campaignAccountContents.OrderByDescending(m => m.DateModified);
            var lastcamption = query.FirstOrDefault();

            if (lastcamption != null)
            {
                LastContent = new CampaignAccountContentViewModel(lastcamption);
            }

            Contents = CampaignAccountContentViewModel.GetList(query);
        }
Ejemplo n.º 2
0
 public ListCampaignAccountContentViewModel(IEnumerable <CampaignAccountContent> campaignAccountContents, int page, int pagesize, int total)
 {
     CampaignAccountContents = CampaignAccountContentViewModel.GetList(campaignAccountContents);
     Pager = new PagerViewModel(page, pagesize, total);
 }