Решенная проблема
This commit is contained in:
parent
e037e11a64
commit
f897516f3e
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user