public async Task <bool> IsValidContent(int campaignAccountid)
        {
            var spec   = new CampaignAccountContentByCampaignAccountIdSpecification(campaignAccountid, CampaignAccountContentStatus.DaDuyet);
            var entity = await _CampaignAccountContentRepository.GetSingleBySpecAsync(spec);

            return(entity != null);
        }
        public async Task <ListCampaignAccountContentViewModel> GetCampaignAccountContents(int campaignAccountId, string order, int page, int pagesize)
        {
            var filter = new CampaignAccountContentByCampaignAccountIdSpecification(campaignAccountId);

            var total = await _CampaignAccountContentRepository.CountAsync(filter);

            var list = await _CampaignAccountContentRepository.ListPagedAsync(filter, "DateModified_desc", page, pagesize);

            return(new ListCampaignAccountContentViewModel()
            {
                CampaignAccountContents = CampaignAccountContentViewModel.GetList(list),
                Pager = new PagerViewModel()
                {
                    Page = page,
                    PageSize = pagesize,
                    Total = total
                }
            });
        }