put and delete to post
This commit is contained in:
parent
a9d70b98ce
commit
da2f99158f
|
|
@ -285,7 +285,7 @@ namespace OnlineAssessment.V1.Controllers
|
||||||
/// <param name="id">The id of the user to edit</param>
|
/// <param name="id">The id of the user to edit</param>
|
||||||
/// <param name="userEdit">User's data to edit</param>
|
/// <param name="userEdit">User's data to edit</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPut("{id}")]
|
[HttpPost("{id}/Update")]
|
||||||
[Authorize(Roles = "SuperAdmin")]
|
[Authorize(Roles = "SuperAdmin")]
|
||||||
public IActionResult Put(int id, [FromBody] UserEditModel userEdit)
|
public IActionResult Put(int id, [FromBody] UserEditModel userEdit)
|
||||||
{
|
{
|
||||||
|
|
@ -318,7 +318,7 @@ namespace OnlineAssessment.V1.Controllers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpDelete("{id}")]
|
[HttpPost("{id}/Delete")]
|
||||||
[Authorize(Roles = "SuperAdmin")]
|
[Authorize(Roles = "SuperAdmin")]
|
||||||
public IActionResult Delete(int id)
|
public IActionResult Delete(int id)
|
||||||
{
|
{
|
||||||
|
|
@ -1339,7 +1339,7 @@ namespace OnlineAssessment.V1.Controllers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="language"></param>
|
/// <param name="language"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPut("{language}/UpdatePreference")]
|
[HttpPost("{language}/UpdatePreference")]
|
||||||
[Authorize(Roles = "Student")]
|
[Authorize(Roles = "Student")]
|
||||||
public IActionResult UpdatePreference(string language)
|
public IActionResult UpdatePreference(string language)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue