public static SiteData GetSiteByID(Guid siteID)
{
using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) {
carrot_Site s = CompiledQueries.cqGetSiteByID(_db, siteID);
if (s != null) {
#if DEBUG
Debug.WriteLine(" ================ " + DateTime.UtcNow.ToString() + " ================");
Debug.WriteLine("Grabbed site : GetSiteByID(Guid siteID) " + siteID.ToString());
#endif
return new SiteData(s);
} else {
return null;
}
}
}