public ActionResult Index(ListModel listModel) { List newList = listModel.CreateList(); ListLogic listLogic = new ListLogic(); List persistedList = listLogic.CreateList(newList); return this.RedirectToAction<ListController>(c => c.Index(persistedList.Id.ToString())); }
public ActionResult Index(List list) { ListLogic listLogic = new ListLogic(); return new ObjectResult<List>(listLogic.CreateList(list)); }