public IActionResult UpdateVehicle([FromBody] VehicleModel model)
 {
     try {
         if (model == null)
         {
             return(BadRequest("Body content is not valid!"));
         }
         if (!ModelState.IsValid)
         {
             return(BadRequest(ModelState));
         }
         var entity = model.Map <VehicleEntity>();
         entity.ManufactureDate = entity.ManufactureDate.ToLocalTime();
         entity = _vehicleLogic.UpdateVehicle(entity);
         if (entity == null)
         {
             return(BadRequest("Somthing went wrong while updating model in DB!"));
         }
         return(Ok(entity));
     } catch (Exception e) {
         return(StatusCode(500, e));
     }
 }