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(); }
public void AddAppManCoEmails(IList <Entities.AppManCoEmail> appManCoEmails) { appManCoEmails.ToList().ForEach(x => AppManCoEmails.Add(new AppManCoEmailViewModel(x))); }