public HttpResponseMessage GetFloors() { GetFloorAndRooms getFloorAndRooms = new GetFloorAndRooms(); IList <Floor> floorList = getFloorAndRooms.GetFloorList(System.Configuration.ConfigurationManager.AppSettings["Connection"]); return(Request.CreateResponse(HttpStatusCode.OK, floorList)); }