public Photo Map(ApiPhoto apiPhoto) { return(new Photo() { Title = apiPhoto.Title, Url = string.Format("https://farm{0}.staticflickr.com/{1}/{2}_{3}.jpg", apiPhoto.Farm, apiPhoto.Server, apiPhoto.Id, apiPhoto.Secret) }); }
String InterfacePhoto.AddPhotoWCF(String path, DateTime data_creare, String description) { ApiPhoto apiPhoto = new ApiPhoto(); return(apiPhoto.AddPhoto(path, data_creare, description)); }
List <Photo> InterfacePhoto.GetPhotosByDateWCF(DateTime date) { ApiPhoto apiPhoto = new ApiPhoto(); return(apiPhoto.GetPhotosByDate(date)); }
String InterfacePhoto.MarkDeletedWCF(int id) { ApiPhoto apiPhoto = new ApiPhoto(); return(apiPhoto.MarkDeleted(id)); }
List <Photo> InterfacePhoto.GetPhotosByDescriereWCF(String descriere) { ApiPhoto apiPhoto = new ApiPhoto(); return(apiPhoto.GetPhotosByDescriere(descriere)); }
Photo InterfacePhoto.GetPhotosByIdWCF(int id) { ApiPhoto apiPhoto = new ApiPhoto(); return(apiPhoto.GetPhotosById(id)); }
Photo InterfacePhoto.EditPhotoWCF(int id, String path, DateTime data_creare, String description) { ApiPhoto apiPhoto = new ApiPhoto(); return(apiPhoto.EditPhoto(id, path, data_creare, description)); }
List <Photo> InterfacePhoto.GetAllPhotosWCF() { ApiPhoto apiPhoto = new ApiPhoto(); return(apiPhoto.GetAllPhotos()); }
String InterfacePhoto.DeletePhotoWCF(int id) { ApiPhoto apiPhoto = new ApiPhoto(); return(apiPhoto.DeletePhoto(id)); }