mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
Add strong naming and fix DB path on IIS Express
This commit is contained in:
@@ -7,7 +7,7 @@ namespace ReactExample.Controllers
|
||||
public class PeopleApiController : Controller
|
||||
{
|
||||
[HttpPut("api/people/{personId:int}")]
|
||||
public async Task<ActionResult> UpdatePerson([FromBody] PersonDto person)
|
||||
public ActionResult UpdatePerson([FromBody] PersonDto person)
|
||||
{
|
||||
if (!ModelState.IsValid) {
|
||||
return HttpBadRequest(ModelState);
|
||||
|
||||
Reference in New Issue
Block a user