Bookstore.ReviewsSearcher.ReviewsSearcherUI.LogQuery C# (CSharp) Метод

LogQuery() статический приватный Метод

static private LogQuery ( LogsContext context, string queryXml ) : void
context Bookstore.Logs.Data.LogsContext
queryXml string
Результат 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();
        }