// GET: Category2Property/Create public ActionResult Create(int categoryId) { ViewBag.Propertties = new SelectList(_dropDownService.GetProperties(), "id", "name", null); return(View(new Category2FacilityViewModel { CategoryId = categoryId })); }
// GET: Facility/Create public ActionResult Create() { ViewBag.Parents = new SelectList(_dropDownService.GetProperties(), "id", "name", null); return(View()); }