Merge branch 'release/2.1' into dev
This commit is contained in:
commit
84c8db5aae
|
|
@ -4,7 +4,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Net;
|
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
@ -203,15 +202,6 @@ namespace Microsoft.AspNetCore.Mvc
|
||||||
[NonAction]
|
[NonAction]
|
||||||
public virtual StatusCodeResult StatusCode(int statusCode)
|
public virtual StatusCodeResult StatusCode(int statusCode)
|
||||||
=> new StatusCodeResult(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>
|
/// <summary>
|
||||||
/// Creates a <see cref="ObjectResult"/> object by specifying a <paramref name="statusCode"/> and <paramref name="value"/>
|
/// Creates a <see cref="ObjectResult"/> object by specifying a <paramref name="statusCode"/> and <paramref name="value"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue