public JsonResult GetSegmentLRSDetails(int LRSId)
 {
     SegmentModel model = new SegmentModel();
     try
     {
         XMLService xml = new XMLService(_rtpProjectRepository);
         model.LRSRecord = xml.LoadRecord((int)SchemeName.LRSProjects, LRSId);
     }
     catch (Exception ex)
     {
         return Json(new { message = "LRS Record not found." });
     }
     return Json(model);
 }
 public JsonResult GetSegmentDetails(int segmentId)
 {
     SegmentModel model;
     try
     {
         model = _surveyRepository.GetSegmentDetails(segmentId);
         XMLService xml = new XMLService(_surveyRepository);
         model._LRS = xml.LoadRecord((int)SchemeName.LRSProjects, model.LRSObjectID);
     }
     catch (Exception ex)
     {
         return Json(new { message = "Segment not found." });
     }
     return Json(model);
 }