예제 #1
0
 public static Currency Map(Domain.Currency c)
 {
     return(new Currency {
         Code = c.Code,
         Scale = c.Scale,
         Symbol = c.Symbol
     });
 }
        public void SeedCurrency()
        {
            var currency = new Domain.Currency()
            {
                Code               = "VND",
                Name               = "Việt Nam Đồng",
                Description        = "",
                Active             = true,
                DefaultValuePerVnd = 1,
                CreatedAt          = new DateTime(),
                UpdatedAt          = new DateTime(),
                CreatedBy          = 1,
                UpdatedBy          = 1
            };

            _databaseService.Currencies.Add(currency);
        }