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