示例#1
0
        // GET: CategoryDB
        public async Task <IActionResult> Index()
        {
            var categories = await provider.GetAll();

            return(View(mapper.Map <IEnumerable <CategoryViewModel> >(categories)));
        }
示例#2
0
        // GET: TodoItemDB
        public async Task <IActionResult> Index()
        {
            var todoItems = await provider.GetAll();

            return(View(mapper.Map <IEnumerable <TodoItemViewModel> >(todoItems)));
        }