示例#1
0
        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()));
        }
示例#2
0
        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);
        }
示例#3
0
 public ActionResult Index(List list)
 {
     ListLogic listLogic = new ListLogic();
     return new ObjectResult<List>(listLogic.CreateList(list));
 }
示例#4
0
 public ActionResult Index()
 {
     ListLogic listLogic = new ListLogic();
     var lists = listLogic.GetAllLists();
     return new ObjectResult<List<List>>(lists);
 }
示例#5
0
 public List GetList(long listId)
 {
     ListLogic logic = new ListLogic();
     return logic.GetList(listId);
 }