public JsonResult DeleteMusics(List <MusicInfo> toDeleted) { string message = string.Empty; try { DSClient client = new DSClient(Models.Const.ApplicationId); int userId; string token; if (GetToken(out userId, out token)) { client.DeleteMusics(Models.Const.ApplicationId, userId, token, toDeleted); message = "Success"; } } catch (Exception exception) { message = exception.Message; } return(Json(new { Message = message }, JsonRequestBehavior.AllowGet)); }