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(); }
public ActionResult AddMemory(Memories viewModel) { return View("Index", viewModel); }