mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Update ReactGrid example to RC2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace ReactExample.Controllers
|
||||
{
|
||||
@@ -10,9 +10,9 @@ namespace ReactExample.Controllers
|
||||
public ActionResult UpdatePerson([FromBody] PersonDto person)
|
||||
{
|
||||
if (!ModelState.IsValid) {
|
||||
return HttpBadRequest(ModelState);
|
||||
return BadRequest(ModelState);
|
||||
} else {
|
||||
return new HttpOkResult();
|
||||
return new OkResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user