public AreaAddress GetAreaAddress(string area_code) { try { NameValueCollection nameValues = new NameValueCollection(); nameValues.Add(ParameterNames.AreaCode, area_code); var parameters = new AreaAddressParameters(nameValues); return new JsonBuilderAreaAddress(parameters).GetAreaAddress(); } catch (Exception ex) { Log(ex); throw; } }
public JsonBuilderAreaAddress(AreaAddressParameters parameters) { _parameters = parameters; Parameters = _parameters; }
public JsonBuilderAreaAddress(HttpContextBase context) : base(context) { _parameters = new AreaAddressParameters(context.Request.Params); Parameters = _parameters; }