public ActionResult GetEventDetails(string sessionId) { string Model = string.Concat("{sessionId:", sessionId, "}"); LogHelper.InsertServiceLogs("search/sessionId (GetEventDetails)", Model); //var events = FeedHelper.GetEventDetailsBySessionIdDynamically(sessionId?.Split('-')[1], sessionId?.Split('-')[0]); var events = FeedHelper.GetEventDetailsBySessionIdDynamically(sessionId?.Substring(sessionId.IndexOf("-") + 1).Trim(), sessionId?.Substring(0, sessionId.IndexOf("-")).Trim()); return(Ok(events)); }