ServiceManager/Utility/StatusResponse.cs
/// <summary>
/// Determines whether the specified status contains the given error code.
/// </summary>
/// <param name="status">The status.</param>
/// <param name="statusDetailCodeType">Type of the status detail code.</param>
/// <returns>
///   <c>true</c> if the specified status contains the error code; otherwise, <c>false</c>.
/// </returns>
Determines whether the specified status contains the given error code.
Determines whether the specified status contains the given error code .
public static bool HasError(Status status, StatusDetailCodeType statusDetailCodeType)
        {
            if (status.isSuccess || status.statusDetail == null)
                return true;
            else
            {
                return null != Array.Find(status.statusDetail, s => s.code == statusDetailCodeType);
            }
        }
public static bool HasError ( Status status , StatusDetailCodeType statusDetailCodeType ) { if ( status . isSuccess || status . statusDetail == null ) return true ; else { return null != Array . Find ( status . statusDetail , s => s . code == statusDetailCodeType ) ; } }
Determines whether the specified status contains the given error code.
Determines whether the specified status contains the given error code .
None
status
Status
None
statusDetailCodeType
StatusDetailCodeType
Type of the status detail code.
Type of the status detail code .