Exemple #1
0
 public void Add([FromBody] CarTypeCreate carType)
 {
     _carTypeApp.Create(carType);
 }
        public void Create(CarTypeCreate command)
        {
            var carType = new CarType(command.Name);

            _carTypeRepository.Create(carType);
        }