Esempio n. 1
0
        public async Task <IActionResult> putVehicleMake(VehicleMakeToPostDto vehicleMakeToPutDto)
        {
            VehicleMake vehicleMake = await _vehicleMakeRepo.AddVehicleMake(vehicleMakeToPutDto);

            if (vehicleMake == null)
            {
                return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status409Conflict, new { error = "This vehicleMake already exist!" }));
            }


            return(Ok(vehicleMake));
        }