Beispiel #1
0
        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());
        }
Beispiel #2
0
        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));
        }