Work is done through a ClientContext object which acts as your window to operating with SharePoint These are tied to a specific SP site and can be instantiated to the current site as well as a different site than the user is on