public ActionResult <IEnumerable <MappedControllerInfo> > ListControllers() { return(mappedControllers.FindAll().Select(c => new MappedControllerInfo { Id = c.Device.Id, Name = c.Name, DeviceType = c.Device == null ? null : c.Device.DeviceType.ToString(), Emulator = c.Device == null ? null : c.Device.Emulator.ToString(), Active = c.Device != null, }).ToList()); }