예제 #1
0
        public ActionResult ShowPlaceList()
        {
            var list = new List <Place>();

            foreach (var i in placeBll.GetPlaceListToOrderBLL())
            {
                Place p = new Place();
                p.PlaceId      = i.PlaceId;
                p.Picture      = i.Picture;
                p.PlaceName    = i.PlaceName;
                p.PlaceTypeId  = i.PlaceTypeId;
                p.Price        = i.Price;
                p.Seat         = i.Seat;
                p.AvailableEat = i.AvailableEat;
                p.Descriptions = i.Descriptions;
                list.Add(p);
            }
            return(this.Json(list, JsonRequestBehavior.AllowGet));
        }