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