Rock.Model.BlockTypeService.GetByGuid C# (CSharp) Method

GetByGuid() public method

Gets a Rock.Model.BlockType by its Guid.
public GetByGuid ( System.Guid guid ) : BlockType
guid System.Guid identifier filter to search by.
return BlockType
        public BlockType GetByGuid( Guid guid )
        {
            return Queryable().FirstOrDefault( t => t.Guid == guid );
        }