public async Task<Response> Handle(Request request) { return new Response() { Sprint = SprintApiModel.FromSprint(await _context.Sprints.FindAsync(request.Id)) }; }
public async Task <GetSprintByIdResponse> Handle(GetSprintByIdRequest request) { return(new GetSprintByIdResponse() { Sprint = SprintApiModel.FromSprint(await _context.Sprints.FindAsync(request.Id)) }); }
public async Task <GetSprintsResponse> Handle(GetSprintsRequest request) { var sprints = await _context.Sprints.ToListAsync(); return(new GetSprintsResponse() { Sprints = sprints.Select(x => SprintApiModel.FromSprint(x)).ToList() }); }