Решенная проблема

This commit is contained in:
DyCTaTOR 2024-05-18 19:24:39 +04:00
parent e037e11a64
commit f897516f3e
2 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@ namespace UniversityRestApi.Controllers
throw; throw;
} }
} }
[HttpPost]
public void CreateStudent(StudentBindingModel model) public void CreateStudent(StudentBindingModel model)
{ {
try try
@ -42,6 +43,7 @@ namespace UniversityRestApi.Controllers
throw; throw;
} }
} }
[HttpPut]
public void UpdateStudent(StudentBindingModel model) public void UpdateStudent(StudentBindingModel model)
{ {
try try
@ -54,6 +56,7 @@ namespace UniversityRestApi.Controllers
throw; throw;
} }
} }
[HttpDelete]
public void DeleteStudent(StudentBindingModel model) public void DeleteStudent(StudentBindingModel model)
{ {
try try

View File

@ -30,6 +30,7 @@ namespace UniversityRestApi.Controllers
throw; throw;
} }
} }
[HttpPost]
public void CreateTeacher(TeacherBindingModel model) public void CreateTeacher(TeacherBindingModel model)
{ {
try try
@ -42,6 +43,7 @@ namespace UniversityRestApi.Controllers
throw; throw;
} }
} }
[HttpPut]
public void UpdateTeacher(TeacherBindingModel model) public void UpdateTeacher(TeacherBindingModel model)
{ {
try try
@ -54,6 +56,7 @@ namespace UniversityRestApi.Controllers
throw; throw;
} }
} }
[HttpDelete]
public void DeleteTeacher(TeacherBindingModel model) public void DeleteTeacher(TeacherBindingModel model)
{ {
try try