public async Task <IActionResult> Post([FromBody] VehicleMakeRest newMaker)
        {
            await Service.AddVehicleMakerAsync(Mapper.Map <Vehicle.Model.VehicleMake>(newMaker));

            //return CreatedAtAction(nameof(Get), new { id = newMaker.VehicleMakeId }, newMaker);
            return(Ok());
        }
        public async Task <IActionResult> Put(int id, [FromBody] VehicleMakeRest changeMaker)
        {
            if (id != changeMaker.VehicleMakeId)
            {
                return(BadRequest());
            }

            if (await Service.MakerExists(id))
            {
                await Service.UpdateVehicleMakerAsync(id, Mapper.Map <Vehicle.Model.VehicleMake>(changeMaker));

                return(Ok());
            }

            return(NoContent());
        }