Update ReactGrid example to RC2

This commit is contained in:
SteveSandersonMS
2016-04-08 12:18:24 +01:00
parent 649c6079ea
commit 1f7ec8e4bf
6 changed files with 74 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
using Microsoft.AspNet.Mvc;
using Microsoft.AspNetCore.Mvc;
namespace ReactExample.Controllers
{

View File

@@ -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();
}
}
}