ls).&nbsp;</p>

<p><strong>vm.taks</strong> is the list of tasks that will be shown in the view. <strong>vm.refreshTasks</strong> method fills this array by getting tasks using <strong>taskService</strong>. It&#39;s called when <strong> selectedTaskState</strong> changes (observed using $scope.$watch).</p>

<p>As you see, calling an application service method is very easy and straightforward! This is a feature of ASP.NET Boilerplate. It generates Web API layer and JavaScript proxy layer that talks with this