コード例 #1
0
        public ActionResult Create()
        {
            IEnumerable <PropertyType> propertyTypes = propertyBL.GetPropertyType();

            ViewBag.propertyId = new SelectList(propertyTypes, "PropertyTypeID", "Type");
            return(View());
        }
コード例 #2
0
        public ActionResult Search()
        {
            IEnumerable <PropertyType> propertyTypes = propertyBL.GetPropertyType();
            IEnumerable <string>       locationList  = propertyBL.GetLocation();

            ViewBag.propertyType = new SelectList(propertyTypes, "PropertyTypeID", "Type");
            ViewBag.location     = new SelectList(locationList);
            return(View());
        }