Example #1
0
 public Policy GetByNumber(string number)
 {
     return(this._policies.FirstOrDefault(x => x.Id == PolicyHelper.FormatNumber(number)));
 }
 public Policy GetByNumber(string number)
 {
     return(JsonConvert.DeserializeObject <PolicyList>(this.GetData()).Policies.FirstOrDefault(x => x.Id == PolicyHelper.FormatNumber(number)));
 }