финалфинал
This commit is contained in:
parent
59f18199a8
commit
c3543d4465
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user