ServiceResponse class

namespace: Serenity.Services   assemblySerenity.Net.Services

The base service response object model for all service response types. Your custom response objects should derive from this class.

public class ServiceResponse

Public Members

name description
ServiceResponse() The default constructor.
CustomData { get; set; } A custom data dictionary. Please consider subclassing the service response before passing data via this property. This should be only used in limited cases where subclassing is not feasible. Another option could be to add a [JsonExtensionData] but that could open way to the side effect ignoring typos.
Error { get; set; } The error returned if any.

See Also