예제 #1
0
        public void Create(DetailViewModel detailViewModel)
        {
            DetailModel detailModel = new DetailModel
            {
                Id    = detailViewModel.Id,
                CarId = detailViewModel.CarId,
                Name  = detailViewModel.Name,
                Price = detailViewModel.Price
            };

            service.Create(detailModel);
        }
예제 #2
0
        public void Create(DetailViewModel detailViewModel)
        {
            DetailModel detailModel = new DetailModel
            {
                CarId     = detailViewModel.CarId,
                Name      = detailViewModel.Name,
                Price     = detailViewModel.Price,
                DetTypeId = detailViewModel.DetTypeId
            };

            service.Create(detailModel);
        }