Exemple #1
0
        public async Task <IHttpActionResult> Get()
        {
            GetLoadtestsForTimePeriodRequest  request  = new GetLoadtestsForTimePeriodRequest(DateTime.UtcNow, DateTime.UtcNow.AddDays(14));
            GetLoadtestsForTimePeriodResponse response = await _timetableService.GetLoadtestsForTimePeriodAsync(request);

            if (response.Exception == null)
            {
                return(Ok <IEnumerable <LoadTestViewModel> >(response.Loadtests));
            }

            return(InternalServerError(response.Exception));
        }
Exemple #2
0
 public async Task <GetLoadtestsForTimePeriodResponse> GetLoadtestsForTimePeriodAsync(GetLoadtestsForTimePeriodRequest getLoadtestsForTimePeriodRequest)
 {
     return(await _innerTimetableService.GetLoadtestsForTimePeriodAsync(getLoadtestsForTimePeriodRequest));
 }