public ActionResult Results() { var dtos = BracketsDataService.GetChecksHistoryList(); var viewModels = Mapper.Map <IEnumerable <LogDto>, IEnumerable <CheckResultViewModel> >(dtos); return(View(viewModels)); }
protected void Page_Load(object sender, EventArgs e) { var dtos = BracketsDataService.GetChecksHistoryList(); var viewModels = Mapper.Map <IEnumerable <LogDto>, IEnumerable <CheckResultViewModel> >(dtos); ResultsHistoryList.DataSource = viewModels; ResultsHistoryList.DataBind(); }