Пример #1
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));
        }
Пример #2
0
        public IList <SprintSummaryDto> Get()
        {
            var sprints = lister.GetSprints(new ListSprintsRequest());

            return(sprints.Select(x => mapper.Value.Map <SprintSummaryDto>(x)).ToList());
        }
 void AddAvailableSprints(IHasAvailableSprints model)
 {
     model.AvailableSprints = sprintLister.GetSprints(new ListSprintsRequest())
                              .Select(mapper.Map <SprintSummaryDto>)
                              .ToList();
 }