Esempio n. 1
0
        public string GetHeadTrackName(string json)
        {
            ResultInfo resultInfo = new ResultInfo();

            try
            {
                Request request  = JsonConvert.DeserializeObject <Request>(json);
                string  FilePath = request.filepath;
                var     item     = citHelper.GetHeadTrackName(FilePath);
                string  result   = JsonConvert.SerializeObject(item);
                resultInfo.flag = 1;
                resultInfo.msg  = "";
                resultInfo.data = result;
            }
            catch (Exception ex)
            {
                resultInfo.flag = 0;
                resultInfo.msg  = ex.Message;
            }

            return(JsonConvert.SerializeObject(resultInfo));
        }