public async Task <IHttpActionResult> GetDeviceRecord(string deviceid) { if (string.IsNullOrEmpty(deviceid)) { return(BadRequest()); } //deviceid = deviceid.ToLower(); return(Ok(await _statsService.GetDeviceRecord(deviceid).ConfigureAwait(false))); }