private async void CourseGradeAction() { var file = await _preferenceEngine.PickFile(); IsBusy = true; var res = await _courseHandler.UploadCourseResult(CurrentCourse.Id, file, null); _dialog.ShowToastMessage(res.Message); IsBusy = false; }
private async void AddMaterialAction() { IsBusy = true; var file = await _filePicker.PickFile(); if (file != null && CurrentCourse.Id == 0) { if (CurrentCourse.Id != 0) { var res = await _courseHandler.AddMaterial(CurrentCourse.Id, new List <DBFile> { file }); if (res != null) { _dialog.ShowToastMessage(res.Message); if (res.Actionstatus) { DBFiles.Add(file); } } } } IsBusy = false; }
private async void AddMaterialAction() { var pickFile = await _preferneceEngine.PickFile(); if (pickFile != null) { DBFiles.Add(pickFile); } }