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()); }
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 })); }
public async Task <Models.List> CreateList(string listName, string idBoard, string Token) { return(await _listService.CreateListAsync(listName, idBoard, Token)); }