Beispiel #1
0
        public void CreatePhotoEntity(string galleryPath, string filename, string filepath, PhotoGallery gallery)
        {
            var photo = new Photo
            {
                Name = filename,
                //Path = galleryPath + foldername + "/" + filename,
                Path = galleryPath + filepath + filename,
                IsMainPhoto = false,
                PhotoGallery = gallery
            };

            this.CreatePhoto(photo);
        }
Beispiel #2
0
 public void CreatePhoto(Photo photo)
 {
     photoRepository.Add(photo);
     unitOfWork.Save();
 }
Beispiel #3
0
 public void AttachPhoto(Photo photo)
 {
     throw new NotImplementedException();
 }