private static DateTimeRange GetDateTimeRangeForJobFrom(FulfillmentRequest fulfillmentRequest) { if (fulfillmentRequest.IsParameterDateRange(Constants.Variables.Date)) { return(fulfillmentRequest.GetParemterAsDateTimeRange(Constants.Variables.Date)); } var dateSpecified = fulfillmentRequest.GetParameterAsDateTime(Constants.Variables.Date); return(new DateTimeRange { Start = dateSpecified, End = dateSpecified.AddHours(3) }); }