Carrotware.CMS.Core.ContentEditor.GetByURL C# (CSharp) Method

GetByURL() public static method

public static GetByURL ( System.Guid SiteID, string requestedURL ) : ContentEditor
SiteID System.Guid
requestedURL string
return ContentEditor
        public static ContentEditor GetByURL(Guid SiteID, string requestedURL)
        {
            ContentEditor _item = null;
            using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) {
                vw_carrot_EditorURL query = CompiledQueries.cqGetContentEditorURL(_db, SiteID, requestedURL);
                if (query != null) {
                    _item = new ContentEditor(query);
                }
            }

            return _item;
        }