Ejemplo n.º 1
0
 public static ValidateError ValidateMessage(string key)
 {
     var json = SerializeJson.LoadJson();
     if (json.ContainsKey(key))
     {
         return DeserializeJson.ToObject<ValidateError>(json[key].ToString());
     }
     return new ValidateError
     {
         Code = "099",
         LongName = "Error General"
     };
 }