public IActionResult GetMainPhoto(int carId) { var result = _photoManager.GetByCarId(carId); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }