public InstructorsViewModel() { instance = this; this.InstructorService = new InstructorService(); this.RefreshCommand = new Command(async() => await GetInstructors()); this.RefreshCommand.Execute(null); }
public InstructorItemViewModel() { this.instructorService = new InstructorService(); EditInstructorCommand = new Command(async() => await EditInstructor()); DeleteInstructorCommand = new Command(async() => await DeleteInstructor()); }
public CreateInstructorViewModel() { this.instructorService = new InstructorService(); this.SaveCommand = new Command(async() => await CreateInstructor()); this.IsRunning = false; this.IsEnabled = true; }
public EditInstructorViewModel(InstructorDTO instructor) { this.instructor = instructor; this.instructorService = new InstructorService(); this.SaveCommand = new Command(async() => await EditInstructor()); this.IsRunning = false; this.IsEnabled = true; }