public void UploadPhoto(ContentTypes.PhotoLink fileInfo, byte[] fileData) { try { PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil(); photoUploadUtil.SavePhoto(fileInfo, fileData); } catch (ConfigurationErrorsException exConfig) { //throw new FaultException(exConfig.Message); throw new FaultException <ConfigurationErrorsException>(new ConfigurationErrorsException(exConfig.Message), new FaultReason(exConfig.Message), FaultCode.CreateReceiverFaultCode(new FaultCode("ConfigurationErrorsException"))); } }
public List <string> GetCategories() { PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil(); return(photoUploadUtil.GetCategories()); }
public ContentTypes.PhotoLink GetPhoto(int id) { PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil(); return(photoUploadUtil.GetPhoto(id)); }
public List <ContentTypes.PhotoLink> GetPhotos() { PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil(); return(photoUploadUtil.GetPhotos()); }
public void UploadPhoto(ContentTypes.PhotoLink fileInfo, byte[] fileData) { PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil(); photoUploadUtil.SavePhoto(fileInfo, fileData); }