Added logic to Restaurants controller