aspnetcore/Microsoft.AspNet.Mvc/ActionResultHelper.cs

31 lines
693 B
C#

using System;
namespace Microsoft.AspNet.Mvc
{
public class ActionResultHelper : IActionResultHelper
{
public IActionResult Content(string value)
{
return new ContentResult
{
Content = value
};
}
public IActionResult Content(string value, string contentType)
{
return new ContentResult
{
Content = value,
ContentType = contentType
};
}
public IActionResult Json(object value)
{
// TODO: Make this work at some point
throw new NotImplementedException();
}
}
}