コード例 #1
0
 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")));
     }
 }
コード例 #2
0
        public List <string> GetCategories()
        {
            PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil();

            return(photoUploadUtil.GetCategories());
        }
コード例 #3
0
        public ContentTypes.PhotoLink GetPhoto(int id)
        {
            PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil();

            return(photoUploadUtil.GetPhoto(id));
        }
コード例 #4
0
        public List <ContentTypes.PhotoLink> GetPhotos()
        {
            PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil();

            return(photoUploadUtil.GetPhotos());
        }
コード例 #5
0
        public void UploadPhoto(ContentTypes.PhotoLink fileInfo, byte[] fileData)
        {
            PhotoUploadUtil photoUploadUtil = new PhotoUploadUtil();

            photoUploadUtil.SavePhoto(fileInfo, fileData);
        }