public IActionResult OnGet(int taskId) { MyTask = taskData.GetById(taskId); if (MyTask == null) { return(RedirectToPage("./NotFound")); } TaskStat = taskData.AddNewLine(TaskStat, DateTime.Now.ToString(), DateTime.Now.ToString()); //TaskStat.StartTime = DateTime.Now.ToString(); return(Page()); }