// GET: Admin/Post public ActionResult Create() { AddPostVM model = new AddPostVM() { Categories = _categoryRepo.GetActive(), AppUsers = _appUserRepo.GetDefault(x => x.Role != Role.Member) }; return(View(model)); }
public ActionResult List() => View(_repo.GetActive());