Template Documentation
JsonHelperFail Method (String, Object) |
Returns a fail Response with the given text and serialize object (isSuccess = false, responseText = responseText, date = data)
Namespace: Template.Web.Commons.Utils
Assembly: Template.Web (in Template.Web.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static JsonResult Fail( string responseText, Object data )
Parameters
- responseText
- Type: SystemString
The text to return - data
- Type: SystemObject
Yhe object to serialize
Return Value
Type: JsonResultThe JsonResult object
See Also