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