Ejemplo n.º 1
0
 public IActionResult CreateList(ListModel model)
 {
     if (model.Title != null && model.Description != null)
     {
         listService.CreateListAsync(new MemoList {
             Description = model.Description, Title = model.Title
         }, AccountModel.GetInstace().Session).Wait();
     }
     return(List());
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> CreateList(CreateListModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var list = await _listService.CreateListAsync(model.Title);

            return(RedirectToAction("Index", "List", new
            {
                id = list.Id,
                token = list.TokenString
            }));
        }
Ejemplo n.º 3
0
 public async Task <Models.List> CreateList(string listName, string idBoard, string Token)
 {
     return(await _listService.CreateListAsync(listName, idBoard, Token));
 }