private async Task OnAddProctor() { var res = await ExamServices.AddProctor(_examId, _proctorIdToAdd); if (res != ErrorCodes.Success) { await Modal.ErrorAsync(new ConfirmOptions() { Title = "Failed to add proctor to exam", Content = ErrorCodes.MessageMap[res] }); } else { await Modal.SuccessAsync(new ConfirmOptions() { Title = "Successfully added proctor to exam" }); _proctorIdToAdd = ""; } }