Template Documentation
![]() | JsonHelper Class |
Class to help with the JSON responses

Namespace: Template.Web.Commons.Utils
Assembly: Template.Web (in Template.Web.dll) Version: 1.0.0.0 (1.0.0.0)

C#
public static class JsonHelper

Name | Description | |
---|---|---|
![]() ![]() | Fail |
Returns a Fail response (isSuccess = false)
|
![]() ![]() | Fail(String) |
Returns a fail response with the given text (isSuccess = false, responseText = responseText)
|
![]() ![]() | Fail(String, Object) |
Returns a fail Response with the given text and serialize object (isSuccess = false, responseText = responseText, date = data)
|
![]() ![]() | Success |
Returns a Success response (isSuccess = true)
|
![]() ![]() | Success(String) |
Returns a Success response with the given text (isSuccess = true, responseText = responseText)
|
![]() ![]() | Success(String, Object) |
Returns a Success Response with the given text and serialize object
|
