Struct JSONResult
Represents MVC action result that returns JSON object with options. If JSON options are not needed then just return CLR object directly from controller action without this wrapper
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.Wave.MVC
Assembly: NFX.Wave.dll
Syntax
public struct JSONResult : IActionResult
Constructors
JSONResult(Exception, JSONWritingOptions)
Declaration
public JSONResult(Exception error, JSONWritingOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | error | |
JSONWritingOptions | options |
JSONResult(Object, JSONWritingOptions)
Declaration
public JSONResult(object data, JSONWritingOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Object | data | |
JSONWritingOptions | options |
Fields
Data
Declaration
public readonly object Data
Field Value
Type | Description |
---|---|
System.Object |
Options
Declaration
public readonly JSONWritingOptions Options
Field Value
Type | Description |
---|---|
JSONWritingOptions |
Methods
Execute(Controller, WorkContext)
Declaration
public void Execute(Controller controller, WorkContext work)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | |
WorkContext | work |