public async Task <RabbitResponse> ProcessAsync(string data) { m_logger.LogInformation($"Received {data}"); var response = JsonConvert.DeserializeObject <RobotUpdateResponse>(data); var(_, toUpdate) = await m_robotService.SearchRobotAsync(new Pagination(), new Ordering(), new RobotFilter { Ids = response.Robots.Select(t => t.Id).ToList() }); response.Robots.ForEach(t => { toUpdate.First(x => x.Id.Equals(t.Id)).CurrentStatus = t.CurrentStatus; toUpdate.First(x => x.Id.Equals(t.Id)).CurrentPlanetId = null; }); await m_robotService.UpdateListOfRobotsAsync(toUpdate); return(null); }