Exemplo n.º 1
0
        public virtual void UpdateCurrency(long currencyId)
        {
            Currency c = currencyService.GetCurrencyById(currencyId);

            c = validate(c);
            if (errors.HasErrors)
            {
                run(EditCurrency, currencyId);
            }
            else
            {
                c.update();
                log(SiteLogString.UpdateCurrency(), typeof(Currency));
                echoToParentPart(lang("saved"));
            }
        }