コード例 #1
0
 public JsonResult UploadMusics(List<Byte[]> toUpload)
 {
     string message = string.Empty;
     try
     {
         DSClient client = new DSClient(Models.Const.ApplicationId);
         int userId;
         string token;
         if (GetToken(out userId, out token))
         {
             client.UploadMusics(Models.Const.ApplicationId, userId, token, toUpload);
             message = "Success";
         }
     }
     catch (Exception exception)
     {
         message = exception.Message;
     }
     return Json(new { Message = message }, JsonRequestBehavior.AllowGet);
 }