public static bool IsBusinessStatus(this StatusCode statusCode) { if (statusCode.GetAttribute <IsBusinessExceptionAttribute>() != null) { return(true); } return(false); }
public static bool IsUnauthorized(this StatusCode statusCode) { if (statusCode.GetAttribute <IsUnAuthorizedExceptionAttribute>() != null) { return(true); } return(false); }