The compiler is correct that your code never explicitly assigns a value to
CustomerId
. Assuming you have correctly configured your binding so that it is assigned a value (I don't think you have), you can make the warning go away with:
private readonly int CustomerId = 0;