public TeamViewModel(INavigationService navigationService, IPageDialogService pageDialogService, ITeamApiService teamApiService) : base(navigationService, pageDialogService) { _teamApiService = teamApiService; _navigationService = navigationService; LoadTeams(); ShowDetailCommand = new DelegateCommand <Datum>(async(teamDetails) => { var navParameters = new NavigationParameters { { ParameterConstants.Team, teamDetails } }; await _navigationService.NavigateAsync(NavigationConstants.TeamDetails, navParameters); }); }
public TeamViewModel(IAlertService alertService) : base(alertService) { teamApiService = new TeamApiService(); GetTeams = new Command(LoadTeams); }