Carrotware.CMS.Core.ContentSnippet.GetCurrentEditUser C# (CSharp) Method

GetCurrentEditUser() public method

public GetCurrentEditUser ( ) : System.Guid
return System.Guid
        public Guid GetCurrentEditUser()
        {
            using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) {
                carrot_RootContentSnippet rc = CompiledQueries.cqGetSnippetDataTbl(_db, this.SiteID, this.Root_ContentSnippetID);

                if (rc != null) {
                    return (Guid)rc.Heartbeat_UserId;
                } else {
                    return Guid.Empty;
                }
            }
        }