public ActionResult DeleteDevice(string id) { var controller = mappedControllers.Find(id); if (controller == null) { return(NotFound($"Cannot find mapped controller with id {id}")); } mappedControllers.Remove(controller); return(StatusCode(204)); }