public static async Task<TurmaDisciplina> insertTurmaDisciplina(string turmaId, string disciplinaId, string professorId) { TurmaDisciplina turmaDisciplina = new TurmaDisciplina { TurmaId = turmaId, DisciplinaId = disciplinaId, ProfessorId = professorId }; await App.MobileService.GetTable<TurmaDisciplina>().InsertAsync(turmaDisciplina); return turmaDisciplina; }
public static async void updateTurmaDisciplina(TurmaDisciplina turmaDisciplina) { await App.MobileService.GetTable<TurmaDisciplina>().UpdateAsync(turmaDisciplina); }