public IActionResult Create([Bind("Id,Title,Description,Status,Priority")] Task task) { if (ModelState.IsValid) { _tasksList.Add(task); return(RedirectToAction(nameof(Index))); } return(View(task)); }