public async Task <IHttpActionResult> GetHistory(string testId, string propertyName, [FromUri] int?seconds) { var data = await _valuesRepository.GetHistory(testId, propertyName, seconds.HasValue?TimeSpan.FromSeconds(seconds.Value) : TimeSpan.MaxValue); return(Ok(data)); }
public async Task <IHttpActionResult> Get(string itemDefinitionId, string propertyName, [FromUri] int seconds) { var results = await _valuesRepository.GetHistory(itemDefinitionId, propertyName, TimeSpan.FromSeconds(seconds)); return(Ok(results)); }