public ActionResult Settings(ShippingMethodRowModel[] model) { return AjaxForm().RedirectTo(Url.Action("ShippingRateProvider", RouteValues.From(Request.QueryString).Merge("id", model[0].Id))); }
public ActionResult Enable(ShippingMethodRowModel[] model) { foreach (var each in model) { var methodId = each.Id; var method = _shippingMethodService.Find(methodId); _shippingMethodService.Enable(method); } return AjaxForm().ReloadPage(); }