public int Post(LRS model)
 {
     //Send update to repo
     try
     {
         return TripsRepository.RtpCreateLrs(model);
     }
     catch (Exception ex)
     {
         Logger.WarnException("Could not create RTP Project LRS", ex);
         throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.ExpectationFailed) { ReasonPhrase = ex.Message });
     }
 }
        public void RtpCreateLrsTest()
        {
            TripsRepository target = new TripsRepository(); // TODO: Initialize to an appropriate value
            LRS lrs = new LRS()
            {
                BEGINMEASU = 1,
                Comments = "your comment here",
                ENDMEASURE = .8,
                Improvetype = "Point",
                Network = "my friends",
                Routename = "Haggerty Blvd",
                SegmentId = 76413
            };

            int actual;
            actual = target.RtpCreateLrs(lrs);
            Assert.AreNotSame(0, actual);
        }
 public void Put(LRS model)
 {
     try
     {
         TripsRepository.RtpUpdateLrs(model);
     }
     catch (Exception ex)
     {
         Logger.WarnException("Could not update RTP Project LRS", ex);
         throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.ExpectationFailed) { ReasonPhrase = ex.Message });
     }
 }