示例#1
0
        public ActionResult Edit(int id)
        {
            IDBConnector     db    = DBConnectorFactory.GetDBConnector();
            SocialMediaModel model = db.SelectSocialMedia(id);

            ViewBag.SocialMediaOptions = DropDownGenerator.GetSocialMediaDropDown(model.SocialMediaID);

            return(View(model));
        }
示例#2
0
        public ActionResult Create()
        {
            ViewBag.SocialMediaOptions = DropDownGenerator.GetSocialMediaDropDown(1);

            return(View());
        }