public List <Station> GetCurrentStationsState() { try { return(manager.GetCurrentStationsState()); } catch (Exception exc) { var resp = new HttpResponseMessage(HttpStatusCode.BadRequest) { Content = new StringContent(exc.Message) }; throw new HttpResponseException(resp); } }