public ActionResult <LastModifiedResponse> GetLastModifiedDate([FromQuery] string scope = null) { var result = new LastModifiedResponse { Scope = scope, LastModifiedDate = _lastModifiedDateTime.LastModified.UtcDateTime }; return(Ok(result)); }
public IHttpActionResult GetLastModifiedDate(string scope = null) { var result = new LastModifiedResponse { Scope = scope, LastModifiedDate = _changesTrackingService.GetLastModifiedDate(scope), }; return(Ok(result)); }
public ActionResult <LastModifiedResponse> GetLastModifiedDate([FromQuery] string module = null) { var result = new LastModifiedResponse { Scope = module, LastModifiedDate = _lastChangesService.GetLastModified(module).UtcDateTime }; return(Ok(result)); }
public async Task <ActionResult <LastModifiedResponse> > GetLastModifiedDate([FromQuery] string scope = null) { var criteria = new ChangeLogSearchCriteria { Take = 1 }; // Get latest change from operation log var latestChange = (await _changeLogSearchService.SearchAsync(criteria)).Results.FirstOrDefault(); var result = new LastModifiedResponse { Scope = scope, LastModifiedDate = new DateTime(Math.Max((latestChange?.ModifiedDate ?? _lastTimestamp).Ticks, _lastTimestamp.Ticks)) }; return(Ok(result)); }