//[Authorize]
        public async Task <IActionResult> CreateVehicleDetails([FromBody] VehicleDetailsWDTO model)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }
                if (!await _vehicleModelRepo.EntityExists(model.modelId))
                {
                    ModelState.AddModelError("ModelId", "Invalid model id");
                    return(BadRequest(ModelState));
                }
                var entity = _vehicleDetailsRepo.CreateVehicleDetail(model);
                _vehicleDetailsRepo.Add(entity);
                if (await _uow.completeAsync())
                {
                    return(Ok(entity.id));
                }

                return(StatusCode(500));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                return(StatusCode(500));
            }
        }