public async Task <Photo> UploadPhoto(Vehicle vehicle, IFormFile file, string uploadFolderPath) { var fileName = await photoStorage.StorePhotos(uploadFolderPath, file); var photo = new Photo { FileName = fileName }; vehicle.Photos.Add(photo); await unitOfWork.CompleteAsync(); return(photo); }