private static List<Review> FindReviewsByPeriod(XmlNode queryNode) { DateTime startPeriod = DateTime.ParseExact(queryNode.GetChildText("start-date"), "d-MMM-yyyy", CultureInfo.InvariantCulture); DateTime endPeriod = DateTime.ParseExact(queryNode.GetChildText("end-date"), "d-MMM-yyyy", CultureInfo.InvariantCulture); List<Review> result = BookstoreDAL.FindReviewsByPeriod(startPeriod, endPeriod); BookstoreLogsDAL.LogSearch(queryNode.OuterXml); return result; }
private static List<Review> FindReviewsByAuthor(XmlNode queryNode) { string authorName = queryNode.GetChildText("author-name"); List<Review> result = BookstoreDAL.FindReviewsByAuthor(authorName); BookstoreLogsDAL.LogSearch(queryNode.OuterXml); return result; }