Beispiel #1
0
        public IActionResult Details(TaskViewModel model)
        {
            List <SubTask> subTasks = _toDoTaskService.GetTaskById(model.Id).SubTask;

            ToDoTask task = new ToDoTask()
            {
                Id          = model.Id,
                Title       = model.Title,
                Description = model.Description,
                Priority    = model.Priority,
                Status      = model.Status,
                TypeOfTask  = model.TypeOfTask,
                SubTask     = subTasks
            };

            _toDoTaskService.UpdateTask(task);

            return(View("_SuccessfulEditDetails"));
        }