JsonHelper Class

Template MVC

JsonHelper Class

Class to help with the JSON responses
Inheritance Hierarchy
SystemObject  Template.Web.Commons.UtilsJsonHelper

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 class JsonHelper
Methods
  NameDescription
Public methodStatic memberFail
Returns a Fail response (isSuccess = false)
Public methodStatic memberFail(String)
Returns a fail response with the given text (isSuccess = false, responseText = responseText)
Public methodStatic memberFail(String, Object)
Returns a fail Response with the given text and serialize object (isSuccess = false, responseText = responseText, date = data)
Public methodStatic memberSuccess
Returns a Success response (isSuccess = true)
Public methodStatic memberSuccess(String)
Returns a Success response with the given text (isSuccess = true, responseText = responseText)
Public methodStatic memberSuccess(String, Object)
Returns a Success Response with the given text and serialize object
Top
See Also