Methods
The methods in the viewmodel can be invoked from the view. We'll use them to implement the add / subtract functionality.
public void Add() 
{
    Result = ...
}
Note: DotVVM will make an AJAX request to the server, where the method in the viewmodel will be executed and the changes made to the viewmodel will be applied to the page.
Tasks
- Inside the Addmethod, add the value ofDifferenceto theResultproperty.
- Inside the Subtractmethod, subtract the value ofDifferencefrom theResultproperty.
| Message | Line | Column | |
|---|---|---|---|
|  |