public IActionResult Index()
        {
            var tasks = _tasksService.GetAll();

            var viewModel = new TasksListViewModel
            {
                ToDoElements = tasks
            };

            return View(viewModel);
        }
 public IActionResult Add(TasksListViewModel viewModel)
 {
     _tasksService.Add(viewModel.NewTask);
     return RedirectToAction("Index", "Home");
 }