public List <string> GetCategories() { List <string> categories = null; using (PhotoManagerContractClient proxy = new PhotoManagerContractClient()) { categories = proxy.GetCategories(); } return(categories); }
public List <PhotoLink> GetPhotos() { List <PhotoLink> photos = null; using (PhotoManagerContractClient proxy = new PhotoManagerContractClient()) { photos = proxy.GetPhotos(); } return(photos); }
public PhotoLink GetPhoto(int id) { PhotoLink photo = null; using (PhotoManagerContractClient proxy = new PhotoManagerContractClient()) { photo = proxy.GetPhoto(id); } return(photo); }