コード例 #1
0
 // PUT: localhost/folder/ikea-berlin
 public string Put(string name)
 {
     try
     {
         using (FolderService folderService = new FolderService())
         {
             FolderService.FolderProcess state = folderService.AddOrUpdateByName(GetAuthKeyFromHeader(), name);
             return(new JavaScriptSerializer().Serialize(new { state = state.ToString() }));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }