From f897516f3eb0e25738400defafb3093a8df5c84d Mon Sep 17 00:00:00 2001 From: DyCTaTOR <125912249+DyCTaTOR@users.noreply.github.com> Date: Sat, 18 May 2024 19:24:39 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=88=D0=B5=D0=BD=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- University/UniversityRestApi/Controllers/StudentController.cs | 3 +++ University/UniversityRestApi/Controllers/TeacherController.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/University/UniversityRestApi/Controllers/StudentController.cs b/University/UniversityRestApi/Controllers/StudentController.cs index b63b6b7..06734a7 100644 --- a/University/UniversityRestApi/Controllers/StudentController.cs +++ b/University/UniversityRestApi/Controllers/StudentController.cs @@ -30,6 +30,7 @@ namespace UniversityRestApi.Controllers throw; } } + [HttpPost] public void CreateStudent(StudentBindingModel model) { try @@ -42,6 +43,7 @@ namespace UniversityRestApi.Controllers throw; } } + [HttpPut] public void UpdateStudent(StudentBindingModel model) { try @@ -54,6 +56,7 @@ namespace UniversityRestApi.Controllers throw; } } + [HttpDelete] public void DeleteStudent(StudentBindingModel model) { try diff --git a/University/UniversityRestApi/Controllers/TeacherController.cs b/University/UniversityRestApi/Controllers/TeacherController.cs index 6f43360..25e59ec 100644 --- a/University/UniversityRestApi/Controllers/TeacherController.cs +++ b/University/UniversityRestApi/Controllers/TeacherController.cs @@ -30,6 +30,7 @@ namespace UniversityRestApi.Controllers throw; } } + [HttpPost] public void CreateTeacher(TeacherBindingModel model) { try @@ -42,6 +43,7 @@ namespace UniversityRestApi.Controllers throw; } } + [HttpPut] public void UpdateTeacher(TeacherBindingModel model) { try @@ -54,6 +56,7 @@ namespace UniversityRestApi.Controllers throw; } } + [HttpDelete] public void DeleteTeacher(TeacherBindingModel model) { try