public function buildingAction($town_id, $building_type_id)
 {
     return $this->jsonResponse(Building::query()->where("town_id = ?1")->andWhere("building_type_id = ?2")->bind(array(1 => $town_id, 2 => $building_type_id))->execute()->toArray());
 }
 public function indexAction()
 {
     return $this->jsonResponse(Building::find()->toArray());
 }