That's not a scenario in my mind. He can return json

-----Original Message-----
From: Kiran Challa
Sent: 5/29/2014 8:49 AM
To: aspnet/Mvc
Cc: Yishai Galatzer
Subject: Re: [Mvc] Issue #242 - Introducing ObjectContentResult (#573)

In src/Microsoft.AspNet.Mvc.Core/ActionResults/ObjectContentResult.cs:
 > +namespace Microsoft.AspNet.Mvc.Core
> +{
> +    public class ObjectContentResult : ActionResult
> +    {
> +        public object Value { get; set; }
> +
> +        public ObjectContentResult(object value)
> +        {
> +            Value = value;
> +        }
> +
> +        public override Task ExecuteResultAsync(ActionContext context)
> +        {
> +            ActionResult result;
> +            var actionReturnString = Value as string;
> +            if (actionReturnString != null)
 
@yishaigalatzer & @sornaks : But what if the user wants to return simple string in Json format itself...we cannot make the assumption that string types should always be returned in text/plain format..right?

—
Reply to this email directly or view it on GitHub.