public ActionResult Create() { IEnumerable <PropertyType> propertyTypes = propertyBL.GetPropertyType(); ViewBag.propertyId = new SelectList(propertyTypes, "PropertyTypeID", "Type"); return(View()); }
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()); }