示例#1
0
        // GET: Restaurants

        public ActionResult Index()
        {
            var model = db.GetAllRestaurant();

            return(View(model));
        }
示例#2
0
        public IEnumerable <Restaurant> Get()
        {
            var model = db.GetAllRestaurant();

            return(model);
        }