Visual studio adds the line:
throw new NotImplementedException();
When it automatically creates a method for you, allowing you to have a marker that there is some work you have to do. If you forget, then the exception is thrown when you run your code, and this serves as a warning that your code probably won't work - because you haven't written it!
Remove the line, and fill in the code to perform the function the method is there for!