상속: BaseProduct
예제 #1
0
 private void mapItem(Seed seed, SeedViewModel input)
 {
     seed.Description = input.Seed.Description;
     seed.Name = input.Seed.Name;
     seed.Notes = input.Seed.Notes;
 }
예제 #2
0
        private void CreateSeed()
        {
            _seed1 = new Seed
            {
                Name = "Cannabis",
            };

            _seed2 = new Seed
            {
                Name = "Opium",
            };

            _repository.Save(_seed1);
            _repository.Save(_seed2);
        }