Ejemplo n.º 1
0
        public IActionResult List()
        {
            MemoList[]       list  = listService.GetAllListAsync(AccountModel.GetInstace().Session).Result;
            List <ListModel> lists = new List <ListModel>();

            foreach (var item in list)
            {
                lists.Add(new ListModel {
                    Title = item.Title, Description = item.Description, Id = item.Id
                });
            }
            ViewBag.list = lists;
            return(View("ListView"));
        }