public ActionResult Configure()
 {
     var model = new CanadaPostShippingModel();
     model.Url = _canadaPostSettings.Url;
     model.Port = _canadaPostSettings.Port;
     model.CustomerId = _canadaPostSettings.CustomerId;
     return View("Nas.Plugin.Shipping.CanadaPost.Views.ShippingCanadaPost.Configure", model);
 }
        public ActionResult Configure(CanadaPostShippingModel model)
        {
            if (!ModelState.IsValid)
            {
                return Configure();
            }

            //save settings
            _canadaPostSettings.Url = model.Url;
            _canadaPostSettings.Port = model.Port;
            _canadaPostSettings.CustomerId = model.CustomerId;
            _settingService.SaveSetting(_canadaPostSettings);

            return View("Nas.Plugin.Shipping.CanadaPost.Views.ShippingCanadaPost.Configure", model);
        }