Ejemplo n.º 1
0
        public async Task DeleteMediaPersonne(MediaPersonne mp)
        {
            var context = await databaseAccess.DatabaseContext.GetCurrent();

            context.MediaPersonne.Remove(mp);
            await context.SaveChangesAsync();
        }
Ejemplo n.º 2
0
        public async Task AddCollab(MediaPersonne p)
        {
            var context = await databaseAccess.DatabaseContext.GetCurrent();

            context.MediaPersonne.Add(p);
            await context.SaveChangesAsync();
        }
        public async Task Preter(MediaPersonne mp)
        {
            var context = await VideothequeDbContext.GetCurrent();

            context.Add(mp);
            await context.SaveChangesAsync();
        }
        public async Task Rendre(MediaPersonne mp)
        {
            var context = await VideothequeDbContext.GetCurrent();

            context.Remove(mp);
            await context.SaveChangesAsync();
        }
Ejemplo n.º 5
0
 public async void Setup()
 {
     Collab = new MediaPersonne()
     {
         PersonneId = SuperViewModel.MVMAuthor.Id,
         Personne   = SuperViewModel.MVMAuthor
     };
     Films = await filmService.SelectAllFilmAsync();
 }