public IActionResult Add(ToDoItemViewModel model) { var userEmail = HttpContext.User.FindFirst(ClaimTypes.Email).Value; var user = _userService.GetUserWithItems(userEmail); _itemService.AddTodoItem(model, user.Id); return(RedirectToAction("UserItems", "User")); }