Skip to content

Commit

Permalink
admin portal: use restful routing for updating a tyre
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaylenReddy42 committed Aug 15, 2022
1 parent 9e7922c commit a57625e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SeelansTyres.Mvc/Controllers/AdminController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public async Task<IActionResult> AddTyre(MvcTyreModel model)
return RedirectToAction("Index");
}

[HttpGet("Admin/UpdateTyre/{tyreId}")]
public async Task<IActionResult> UpdateTyre(int tyreId)
{
var request = new HttpRequestMessage(HttpMethod.Get, $"api/tyres/{tyreId}");
Expand Down

0 comments on commit a57625e

Please sign in to comment.