Bookstore.ReviewsSearcher.ReviewsSearcherUI.LogQuery C# (CSharp) Method

LogQuery() static private method

static private LogQuery ( LogsContext context, string queryXml ) : void
context Bookstore.Logs.Data.LogsContext
queryXml string
return void
        static void LogQuery(LogsContext context, string queryXml)
        {
            SearchLog newLog = new SearchLog();
            newLog.Date = DateTime.Now;
            newLog.QueryXml = queryXml;

            context.SearchLogs.Add(newLog);
            context.SaveChanges();
        }