Example #1
0
        public static Response Error(string key)
        {
            ValidateError validateError = ValidateMessage(key);
            Response      response      = new Response
            {
                State      = validateError.Code,
                Message    = validateError.LongName,
                Data       = null,
                Exceptions = null
            };

            return(response);
        }
Example #2
0
        public static Response Success(object data)
        {
            ValidateError validateError = ValidateMessage("Completed");
            Response      response      = new Response
            {
                State      = validateError.Code,
                Message    = validateError.LongName,
                Data       = data,
                Exceptions = null
            };

            return(response);
        }