Esempio n. 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);
        }
Esempio n. 2
0
 public void CreatePhoto(Photo photo)
 {
     photoRepository.Add(photo);
     unitOfWork.Save();
 }
Esempio n. 3
0
 public void AttachPhoto(Photo photo)
 {
     throw new NotImplementedException();
 }