Exemplo n.º 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()));
        }
Exemplo n.º 2
0
 public ActionResult Index(List list)
 {
     ListLogic listLogic = new ListLogic();
     return new ObjectResult<List>(listLogic.CreateList(list));
 }