public bool InsertFeedBack() { var request = HttpContext.Request; byte[] requestData = new byte[(int)request.ContentLength]; request.Body.Read(requestData, 0, requestData.Length); var input = Encoding.UTF8.GetString(requestData); SqlDbHelper sqlDbHelper = new SqlDbHelper(); sqlDbHelper.ConnectionString = strMySqlConn; var flaws = JsonConvert.DeserializeObject <List <FlawInfoFeedBack> >(input); if (flaws.Count > 0) { foreach (var f in flaws) { sqlDbHelper.AddOrUpdate <FlawInfoFeedBack>(f); } } return(true); }