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