Beispiel #1
0
        public ActionResult <VehicleTypesReadDto> CreateVehicle(VehicleTypesCreateDto VehicleCreateDto)
        {
            var vehicleModel = _mapper.Map <VehicleTypes>(VehicleCreateDto);

            _repo.CreateVehicle(vehicleModel);
            _repo.SaveChanges();
            return(NoContent());
        }