public CreateDepartmentViewModel()
        {
            this.departmentsService = new DepartmentsService();
            this.SaveCommand        = new Command(async() => await CreateDepartment());

            this.IsRunning = false;
            this.IsEnabled = true;
        }
Ejemplo n.º 2
0
 public DepartmentsViewModel()
 {
     this.DepartmentsService = new DepartmentsService();
     this.RefreshCommand     = new Command(async() => await GetDepartments());
     this.RefreshCommand.Execute(null);
 }