コード例 #1
0
        public ActionResult Create()
        {
            var DefoultModel = new DomainLayer.DB_Model.News.News
            {
                IsActive = true
            };


            var NewsGroupList = new SelectList(_newsGroupServices.GetGroupList(), "NewsGroupId", "Name");

            ViewBag.NewsGroupList = NewsGroupList;

            return(View(DefoultModel));
        }
コード例 #2
0
 public ActionResult index()
 {
     return(View(_newsGroupServices.GetGroupList()));
 }