예제 #1
0
        public ActionResult Index(Memories viewModel)
        {
            if (viewModel == null || viewModel.MemoryList == null)
            {
                return View(new Memories{MemoryList = new List<Memory>{new Memory()}});
            }

            if (viewModel.MemoryList.Count >= 1)
            {
                return View(viewModel);
            }

            return View();
        }
예제 #2
0
 public ActionResult AddMemory(Memories viewModel)
 {
     return View("Index", viewModel);
 }