Beispiel #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));
        }
Beispiel #2
0
 public ActionResult index()
 {
     return(View(_newsGroupServices.GetGroupList()));
 }