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

            return(View(model));
        }