Ejemplo n.º 1
0
        //
        // GET: /List/

        public async Task<ActionResult> Index(string id)
        {
			if (string.IsNullOrEmpty(id))
				return RedirectToAction("Empty");


			var viewModel = new ViewModels.WishListViewModel(id);

			await viewModel.LoadList();

			if (viewModel.WishList == null)
				return RedirectToAction("Empty");

			await viewModel.LoadEntries();

			return View(viewModel);
        }
Ejemplo n.º 2
0
        //
        // GET: /List/

        public async Task <ActionResult> Index(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(RedirectToAction("Empty"));
            }


            var viewModel = new ViewModels.WishListViewModel(id);

            await viewModel.LoadList();

            if (viewModel.WishList == null)
            {
                return(RedirectToAction("Empty"));
            }

            await viewModel.LoadEntries();

            return(View(viewModel));
        }