public IActionResult Edit(ShippingPointModel model)
        {
            if (ModelState.IsValid)
            {
                var shippingPoint = _shippingPointService.GetStoreShippingPointById(model.Id);
                shippingPoint = model.ToEntity();
                _shippingPointService.UpdateStoreShippingPoint(shippingPoint);
            }
            ViewBag.RefreshPage = true;

            PrepareShippingPointModel(model);

            return(View("~/Plugins/Shipping.ShippingPoint/Views/Edit.cshtml", model));
        }
        public async Task <IActionResult> Edit(ShippingPointModel model)
        {
            if (ModelState.IsValid)
            {
                var shippingPoint = await _shippingPointService.GetStoreShippingPointById(model.Id);

                shippingPoint = model.ToEntity();
                await _shippingPointService.UpdateStoreShippingPoint(shippingPoint);
            }
            ViewBag.RefreshPage = true;

            await PrepareShippingPointModel(model);

            return(View(model));
        }