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(string id) { long longId = id.ToLongOrDefault(); ListLogic listLogic = new ListLogic(); List list = listLogic.GetList(longId); ListModel listModel = list.CreateListModel(); return View(listModel); }
public ActionResult Index(List list) { ListLogic listLogic = new ListLogic(); return new ObjectResult<List>(listLogic.CreateList(list)); }
public ActionResult Index() { ListLogic listLogic = new ListLogic(); var lists = listLogic.GetAllLists(); return new ObjectResult<List<List>>(lists); }
public List GetList(long listId) { ListLogic logic = new ListLogic(); return logic.GetList(listId); }