aspnetcore/test/WebSites/ContentNegotiationWebSite/Controllers/NoContentController.cs

40 lines
929 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 System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
namespace ContentNegotiationWebSite
{
public class NoContentController : Controller
{
public Task<string> ReturnTaskOfString_NullValue()
{
return Task.FromResult<string>(null);
}
public Task<object> ReturnTaskOfObject_NullValue()
{
return Task.FromResult<object>(null);
}
public string ReturnString_NullValue()
{
return null;
}
public object ReturnObject_NullValue()
{
return null;
}
public Task ReturnTask()
{
return Task.FromResult<bool>(true);
}
public void ReturnVoid()
{
}
}
}