diff --git a/TaskTrackerRestApi/Controllers/MainController.cs b/TaskTrackerRestApi/Controllers/MainController.cs index 9ab3037..d5401a9 100644 --- a/TaskTrackerRestApi/Controllers/MainController.cs +++ b/TaskTrackerRestApi/Controllers/MainController.cs @@ -76,6 +76,18 @@ namespace TaskTrackerRestApi.Controllers } } + [HttpPost] + public void CreateDirection(DirectionBindingModel model) + { + try + { + _direction.Create(model); + } + catch + { + throw; + } + } [HttpPost] public void CreateSubject(SubjectBindingModel model) @@ -90,6 +102,19 @@ namespace TaskTrackerRestApi.Controllers } } + [HttpGet] + public List? GetSubjectList() + { + try + { + return _subject.ReadList(null); + } + catch + { + throw; + } + } + [HttpGet] public List? GetExamList() {