public ActionResult PropertyAdd() { var brandlist = MobileUIService.GetMobileBrandList(); var hardwarelist = MobileUIService.GetMobileHardwareList(); var resolutionlist = MobileUIService.GetMobileResolutionList(); ViewData["Brandlist"] = brandlist.GetSelectList(); ViewData["Hardwarelist"] = hardwarelist.GetSelectList(); ViewData["Resolutionlist"] = resolutionlist.GetSelectList(); return(View()); }
public ActionResult PropertyEdit(int propertyId) { var brandlist = MobileUIService.GetMobileBrandList(); var hardwarelist = MobileUIService.GetMobileHardwareList(); var resolutionlist = MobileUIService.GetMobileResolutionList(); ViewData["Brandlist"] = brandlist.GetSelectList(); ViewData["Hardwarelist"] = hardwarelist.GetSelectList(); ViewData["Resolutionlist"] = resolutionlist.GetSelectList(); var property = dbContextService.Single <MobileProperty>(propertyId); ViewData["IsUpdate"] = true; return(View("PropertyAdd", property)); }