Merge branch 'release/2.1' into dev

This commit is contained in:
Kiran Challa 2018-05-01 13:32:39 -07:00
commit 84c8db5aae
1 changed files with 0 additions and 10 deletions

View File

@ -4,7 +4,6 @@
using System;
using System.IO;
using System.Linq.Expressions;
using System.Net;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
@ -203,15 +202,6 @@ namespace Microsoft.AspNetCore.Mvc
[NonAction]
public virtual StatusCodeResult StatusCode(int statusCode)
=> new StatusCodeResult(statusCode);
/// <summary>
/// Creates a <see cref="StatusCodeResult"/> object by specifying a <paramref name="statusCode"/>.
/// </summary>
/// <param name="statusCode">The status code to set on the response.</param>
/// <returns>The created <see cref="StatusCodeResult"/> object for the response.</returns>
[NonAction]
public virtual StatusCodeResult StatusCode(HttpStatusCode statusCode)
=> StatusCode((int)statusCode);
/// <summary>
/// Creates a <see cref="ObjectResult"/> object by specifying a <paramref name="statusCode"/> and <paramref name="value"/>