22 lines
684 B
C#
22 lines
684 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace Microsoft.AspNetCore.Mvc
|
|
{
|
|
/// <summary>
|
|
/// An <see cref="StatusCodeResult"/> that when executed will produce an empty
|
|
/// <see cref="StatusCodes.Status200OK"/> response.
|
|
/// </summary>
|
|
public class OkResult : StatusCodeResult
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="OkResult"/> class.
|
|
/// </summary>
|
|
public OkResult()
|
|
: base(StatusCodes.Status200OK)
|
|
{
|
|
}
|
|
}
|
|
} |