public async Task <ActionResult> AddCar([FromForm] CarPhotoDto carPhotoDto) { try { var addcar = await _carService.AddCarService(carPhotoDto); return(Ok()); } catch (Exception) { return(BadRequest("Failed to add car :/")); } }
public async Task <ActionResult> AddCar([FromForm] CarPhotoDto carPhotoDto) { try { var addcar = await _carService.AddCarService(carPhotoDto); return(Ok()); } catch (Exception) { return(BadRequest("Failed to add car :/")); } }