public IActionResult Add(AddTodoViewModel addTodoView) //async { if (ModelState.IsValid) { TodoItem item = new TodoItem(addTodoView.Text, _userId, addTodoView.DateDue); LabelManager lm = new LabelManager(item, addTodoView.Labele, _repository); TodoItem temp = lm.GetItemWithLabels(); _repository.Add(temp); return(RedirectToAction("Index")); } return(View(addTodoView)); }