コード例 #1
0
        public ViewViewComponentResult Invoke()
        {
            var model = new KampanyaListViewModel()
            {
                Kampanyalar = _kampanyaService.GetAll()
            };

            return(View(model));
        }
コード例 #2
0
        public ActionResult Index()
        {
            var kampanya = _kampanyaService.GetAll();
            KampanyaListViewModel model = new KampanyaListViewModel
            {
                Kampanyalar = kampanya
            };

            return(View(model));
        }