ListSprintModel GetModel(AdHocSprintListingRequest spec, IList <Sprint> sprints) { return(new ListSprintModel { ShowingClosedSprints = (spec?.ShowClosedSprints).GetValueOrDefault(), Sprints = sprints.Select(x => mapper.Map <SprintSummaryDto>(x)).ToList(), }); }
public ActionResult Index(AdHocSprintListingRequest spec) { var request = mapper.Map <ListSprintsRequest>(spec); var sprints = lister.GetSprints(request); var model = GetModel(spec, sprints); return(View(model)); }