Example #1
0
 public async Task<Response> Handle(Request request)
 {                
     return new Response()
     {
         Sprint = SprintApiModel.FromSprint(await _context.Sprints.FindAsync(request.Id))
     };
 }
Example #2
0
 public async Task <GetSprintByIdResponse> Handle(GetSprintByIdRequest request)
 {
     return(new GetSprintByIdResponse()
     {
         Sprint = SprintApiModel.FromSprint(await _context.Sprints.FindAsync(request.Id))
     });
 }
Example #3
0
            public async Task <GetSprintsResponse> Handle(GetSprintsRequest request)
            {
                var sprints = await _context.Sprints.ToListAsync();

                return(new GetSprintsResponse()
                {
                    Sprints = sprints.Select(x => SprintApiModel.FromSprint(x)).ToList()
                });
            }