public void AddAppManCoEmails(PagedResult <Entities.AppManCoEmail> appManCoEmails)
        {
            appManCoEmails.Results.ToList().ForEach(x => AppManCoEmails.Add(new AppManCoEmailViewModel(x)));

            PagingInfo = new PagingInfoViewModel
            {
                CurrentPage  = appManCoEmails.CurrentPage,
                TotalItems   = appManCoEmails.TotalItems,
                ItemsPerPage = appManCoEmails.ItemsPerPage,
                TotalPages   = appManCoEmails.TotalPages,
                StartRow     = appManCoEmails.StartRow,
                EndRow       = appManCoEmails.EndRow
            };

            CurrentPage = PagingInfo.CurrentPage.ToString();
        }
Exemple #2
0
 public void AddAppManCoEmails(IList <Entities.AppManCoEmail> appManCoEmails)
 {
     appManCoEmails.ToList().ForEach(x => AppManCoEmails.Add(new AppManCoEmailViewModel(x)));
 }