Exemplo n.º 1
0
        public async Task <bool> SetFilmComment(FilmComment filmComment)
        {
            await _context.FilmComments.AddAsync(filmComment);

            return(await _context.SaveChangesAsync() > 0);
        }
Exemplo n.º 2
0
        public async Task <bool> SetCommunity(Community community)
        {
            await _context.Communities.AddAsync(community);

            return(await _context.SaveChangesAsync() > 0);
        }
Exemplo n.º 3
0
 public async Task <int> Save()
 {
     return(await _context.SaveChangesAsync());
 }