| 12345678910111213141516171819202122232425262728293031 |
- namespace Abp.Web.Models
- {
- public abstract class AjaxResponseBase
- {
- /// <summary>
- /// This property can be used to redirect user to a specified URL.
- /// </summary>
- public string TargetUrl { get; set; }
- /// <summary>
- /// Indicates success status of the result.
- /// Set <see cref="Error"/> if this value is false.
- /// </summary>
- public bool Success { get; set; }
- /// <summary>
- /// Error details (Must and only set if <see cref="Success"/> is false).
- /// </summary>
- public ErrorInfo Error { get; set; }
- /// <summary>
- /// This property can be used to indicate that the current user has no privilege to perform this request.
- /// </summary>
- public bool UnAuthorizedRequest { get; set; }
- /// <summary>
- /// A special signature for AJAX responses. It's used in the client to detect if this is a response wrapped by ABP.
- /// </summary>
- public bool __abp { get; } = true;
- }
- }
|