public async Task <IHttpActionResult> GetActivationsForDevice(string deviceId) { if (string.IsNullOrEmpty(deviceId)) { return(BadRequest()); } deviceId = deviceId.ToLower(); return(Ok(await _activationService.GetAllActivationsForDevice(deviceId).ConfigureAwait(false))); }