Exemplo n.º 1
0
        public static bool IsBusinessStatus(this StatusCode statusCode)
        {
            if (statusCode.GetAttribute <IsBusinessExceptionAttribute>() != null)
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
        public static bool IsUnauthorized(this StatusCode statusCode)
        {
            if (statusCode.GetAttribute <IsUnAuthorizedExceptionAttribute>() != null)
            {
                return(true);
            }

            return(false);
        }