示例#1
0
        public static dataModel.Currency ToDataModel(this coreModel.Currency currency)
        {
            var retVal = new dataModel.Currency();

            retVal.InjectFrom(currency);
            return(retVal);
        }
示例#2
0
 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);
 }
示例#3
0
 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));
 }
示例#5
0
 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;
 }