Class ErrorResult
Error Action Result used when the request is not successful.
[DataContract]
public class ErrorResult
- Inheritance
-
ErrorResult
- Inherited Members
Constructors
ErrorResult(string)
Initializes a new instance of the ErrorResult class.
public ErrorResult(string error = null)
Parameters
error
stringGets or sets error message..
Properties
Error
Gets or sets error message.
[DataMember(Name = "error", EmitDefaultValue = true)]
public string Error { get; set; }
Property Value
- string
Gets or sets error message.
Methods
ToJson()
Returns the JSON string presentation of the object
public virtual string ToJson()
Returns
- string
JSON string presentation of the object