public IActionResult Completed(int tasknotifyId)
        {
            TaskNotify task = taskRepo.GetTask(tasknotifyId);

            task.TaskCompleted  = true;
            task.CompletionDate = DateTime.Now;
            taskRepo.Update(task);
            return(RedirectToAction("Index"));
        }
        public IActionResult Index(int tasknotifyId)
        {
            TaskNotify task = taskRepo.GetTask(tasknotifyId);

            if (!task.TaskViewed)
            {
                task.TaskViewed = true;
            }
            taskRepo.Update(task);
            return(RedirectToAction("Index", "UserTasks"));
        }