Example #1
0
        public static (ResponseType ResponseType, string Message) GetResource(this ResponseCode responseCode)
        {
            var codeAttribute = responseCode.GetAttribute <ResponseCodeAttribute>();
            var message       = GetResourceMessageValue(responseCode.ToString());

            return(codeAttribute.ResponseType, message);
        }