public CreateDepartmentViewModel() { this.departmentsService = new DepartmentsService(); this.SaveCommand = new Command(async() => await CreateDepartment()); this.IsRunning = false; this.IsEnabled = true; }
public DepartmentsViewModel() { this.DepartmentsService = new DepartmentsService(); this.RefreshCommand = new Command(async() => await GetDepartments()); this.RefreshCommand.Execute(null); }