protected void Page_Load(object sender, EventArgs e)
        {
            var l_StartDate = "2015-11-30T00:00";
            var l_EndDate = "2015-11-30T23:59";
            var l_FileDate = "November 30, 2015";
            var l_Position = 76; //980
            var l_LogTypes = new List<PxLog.Objects.LogType>();

            l_LogTypes.Add(LogType.Information);
            l_LogTypes.Add(LogType.Warning);
            l_LogTypes.Add(LogType.Exception);

            var l_FilteredRequest = new FilteredRequest();

            l_FilteredRequest.StartDate = l_StartDate;
            l_FilteredRequest.EndDate = l_EndDate;
            l_FilteredRequest.FileDate = l_FileDate;
            l_FilteredRequest.Position = l_Position;
            l_FilteredRequest.ContextSearchTerm = "";
            l_FilteredRequest.DetailsSearchTerm = "";
            l_FilteredRequest.LogTypes = l_LogTypes;

            //var l_Task2 = WebService.GetLogItemsFromPositionTest(l_FilteredRequest);

            //var l_Task1 = PxLogModel.GetDetails(l_FileDate, 351);
            //var l_done = l_Task1.Replace("\r\n", "<br/>");

               // var l_Done2 = l_Task2;
        }
        public string GetLogItemsFromPosition(FilteredRequest p_FilteredRequest)
        {
            var l_Date = DateTime.Parse(p_FilteredRequest.FileDate);

            var l_Task = PxLog.Models.PxLogModel.GetLogItemsFromPosition(l_Date, p_FilteredRequest.Position, p_FilteredRequest.LogTypes, p_FilteredRequest.ContextSearchTerm, p_FilteredRequest.DetailsSearchTerm);
            l_Task.Wait();
            var l_Result = l_Task.Result;

            var l_JsonItems = new JsonArray();

            foreach (var l_Item in l_Result)
            {
                l_JsonItems.Add(l_Item.ToJson());

            }

            return l_JsonItems.Serialize();
        }