Example #1
0
        //done
        public List <Tag> GetTagsOfPhoto(Photo photo)
        {
            Photo fromDB = context.Photos.Include("Tags").Where(p => p.PhotoId == photo.PhotoId).FirstOrDefault();

            return(fromDB.Tags.ToList());
        }
Example #2
0
 public void DeleteTagFromPhoto(ModelWCF.Photo photo, ModelWCF.Tag tag)
 {
     base.Channel.DeleteTagFromPhoto(photo, tag);
 }
Example #3
0
 public System.Threading.Tasks.Task DeleteTagFromPhotoAsync(ModelWCF.Photo photo, ModelWCF.Tag tag)
 {
     return(base.Channel.DeleteTagFromPhotoAsync(photo, tag));
 }
Example #4
0
 public int DeletePhoto(ModelWCF.Photo photo)
 {
     return(base.Channel.DeletePhoto(photo));
 }
Example #5
0
 public System.Threading.Tasks.Task <int> DeletePhotoAsync(ModelWCF.Photo photo)
 {
     return(base.Channel.DeletePhotoAsync(photo));
 }
Example #6
0
 public System.Threading.Tasks.Task <List <ModelWCF.Tag> > GetTagsOfPhotoAsync(ModelWCF.Photo photo)
 {
     return(base.Channel.GetTagsOfPhotoAsync(photo));
 }
Example #7
0
 public List <ModelWCF.Tag> GetTagsOfPhoto(ModelWCF.Photo photo)
 {
     return(base.Channel.GetTagsOfPhoto(photo));
 }
Example #8
0
 public System.Threading.Tasks.Task <int> AddTagToPhotoAsync(ModelWCF.Photo photo, ModelWCF.Tag tag)
 {
     return(base.Channel.AddTagToPhotoAsync(photo, tag));
 }
Example #9
0
 public int AddTagToPhoto(ModelWCF.Photo photo, ModelWCF.Tag tag)
 {
     return(base.Channel.AddTagToPhoto(photo, tag));
 }
Example #10
0
 public int AddPhoto(ModelWCF.Photo photo)
 {
     return(base.Channel.AddPhoto(photo));
 }