public static dataModel.Currency ToDataModel(this coreModel.Currency currency) { var retVal = new dataModel.Currency(); retVal.InjectFrom(currency); return(retVal); }
public virtual dataModel.Currency FromModel(coreModel.Currency currency) { Code = currency.Code; Name = currency.Name; IsPrimary = currency.IsPrimary; ExchangeRate = currency.ExchangeRate; Symbol = currency.Symbol; CustomFormatting = currency.CustomFormatting; return(this); }
public virtual coreModel.Currency ToModel(coreModel.Currency currency) { currency.Code = Code; currency.Name = Name; currency.IsPrimary = IsPrimary; currency.ExchangeRate = ExchangeRate; currency.Symbol = Symbol; currency.CustomFormatting = CustomFormatting; return(currency); }
public IHttpActionResult CreateCurrency(coreModel.Currency currency) { _commerceService.UpsertCurrencies(new[] { currency }); return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult CreateCurrency(coreModel.Currency currency) { _commerceService.UpsertCurrencies(new[] { currency }); return(Ok()); }
public static coreModel.Currency ToCoreModel(this dataModel.Currency currency) { var retVal = new coreModel.Currency(); retVal.InjectFrom(currency); return retVal; }