Example #1
0
            public async Task <Response> Handle(Query request, CancellationToken cancellationToken)
            {
                var validator = new QueryValidator();
                await validator.ValidateAndThrowAsync(request, cancellationToken : cancellationToken);

                return(new Response {
                    TimeSheet = await _timeSheetService.GetTimeSheetById(request.TimeSheetId)
                });
            }