финалфинал

This commit is contained in:
GokaPek 2024-05-15 10:02:51 +04:00
parent 59f18199a8
commit c3543d4465

View File

@ -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<SubjectViewModel>? GetSubjectList()
{
try
{
return _subject.ReadList(null);
}
catch
{
throw;
}
}
[HttpGet]
public List<ExamViewModel>? GetExamList()
{