i just wonder what the name property inside the HttpMethod attribute is for? I read it can be used in MVC a lot when calling other controllers or getting their routes. So I have something like
[HttpDelete(Name = "DeleteLocation")]public IActionResult Delete([FromQuery] int id){ return Ok(""Deleted"");}
[HttpDelete(Name = "DeleteLocation")]public IActionResult Delete([FromQuery] int id){ return Ok(""Deleted"");}
Im usually used to something like
[HttpDelete("{id}")]
[HttpDelete("{id}")]
. I cannot specify both, right? I just create an api and want to be documentative/verbose about my code