コード例 #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);
        }