public static string ToJsonSafe(this Ar ar) { try { return(ar.ToJson()); } catch (Exception) { return(string.Empty); } }
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; }
public ArStringContent(Ar ar) : base(ar.ToJsonSafe(), Encoding.UTF8, "application/json") { }
public static string ToJson(this Ar ar) { return(JsonConvert.SerializeObject(ar)); }