예제 #1
0
        public IActionResult AddSubTask(SubTaskViewModel model)
        {
            SubTask subTask = new SubTask()
            {
                Title       = model.Title,
                Description = model.Description,
                Status      = Status.NotDone,
                ToDoTaskId  = model.ToDoTaskId
            };

            _subTaskService.CreateNewSubTask(subTask);

            return(View("_AddedNewSubTask"));
        }