public HttpResponseMessage UpdateStopRate(PM_EM_TS_STOPLINE_RATE stopRate)
 {
     try
     {
         StopLineRateBO.UpdateSome(stopRate);
         return(Request.CreateResponse(HttpStatusCode.OK, "更新成功"));
     }
     catch (Exception e)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "更新出错:" + e.Message));
     }
 }
        public HttpResponseMessage AddStoplineRate(IList <PM_EM_TS_STOPLINE_RATE> stopRate)
        {
            for (int i = 0; i < stopRate.Count; i++)
            {
                //CV_PM_EM_TS_STOPLINE_RATE_QueryParam stoprateQuerypam = new CV_PM_EM_TS_STOPLINE_RATE_QueryParam();
                if (stopRate[i].PK == null)
                {
                    stopRate[i].CreatedOn = Convert.ToDateTime(DateTime.Now.ToShortDateString());
                    PM_EM_TS_STOPLINE_RATE stopline = StopLineRateBO.Insert(stopRate[i]);
                }
            }

            return(Request.CreateResponse(HttpStatusCode.OK, "新增成功!"));
        }