Since the code, you've provided seems valid and you've not provided any error message and something stopped you from calling
SalesHeader.SalesFooters
my guess is that in your case
SalesHeader.SalesFooters
is null.
The probable reason for that is that your
_repositoryHeader.GetById(id)
implementation is missing
Include
calls which would fill your navigation property.
You can read more on this
here