Exemple #1
0
 public static string ToJsonSafe(this Ar ar)
 {
     try {
         return(ar.ToJson());
     }
     catch (Exception) {
         return(string.Empty);
     }
 }
Exemple #2
0
 public Ar(Ar ar)
 {
     this.ApplicantName = ar.ApplicantName;
     this.BuildingName  = ar.BuildingName;
     this.Description   = ar.Description;
     this.EcaId         = ar.EcaId;
     this.NppId         = ar.NppId;
     this.NppUnit       = ar.NppUnit;
     this.Revision      = ar.Revision;
     this.SetCode       = ar.SetCode;
     this.SetName       = ar.SetName;
     this.Status        = ar.Status;
     this.SystemName    = ar.SystemName;
 }
Exemple #3
0
 public ArStringContent(Ar ar)
     : base(ar.ToJsonSafe(), Encoding.UTF8,
            "application/json")
 {
 }
Exemple #4
0
 public static string ToJson(this Ar ar)
 {
     return(JsonConvert.SerializeObject(ar));
 }