public FileContentResult GetImage(int id) { Car car = _unitOfWork.GetCarById(id); if (car == null) { return(null); } return(File(car.Image, car.ContentType)); }