public HttpResponseMessage LoadTrackSettings(TrackSettingsRequest trackSettingsRequest)
 {
     try
     {
         PageDetails pageDetails = business.LoadTrackSettings(trackSettingsRequest);
         return Request.CreateResponse<PageDetails>(HttpStatusCode.OK, pageDetails);
     }
     catch (Exception ex)
     {
         Logger.WriteError(ex);
         return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex.Message);
     }
 }
 public HttpResponseMessage LoadTrackEvent(TrackSettingsRequest trackSettingsRequest)
 {
     try
     {
         List<TrackingEvent> trackingData = business.LoadTrackDataDynamic(trackSettingsRequest);
         if (trackingData == null) trackingData = new List<TrackingEvent>();
         return Request.CreateResponse<List<TrackingEvent>>(HttpStatusCode.OK, trackingData);
     }
     catch (Exception ex)
     {
         Logger.WriteError(ex);
         return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex.Message);
     }
 }