예제 #1
0
        public async Task <Comment> CreateAsync(Comment comment)
        {
            _context.Add(comment);
            await _context.SaveChangesAsync();

            return(comment);
        }
예제 #2
0
 public async Task CreateAsync(Photo photo)
 {
     _context.Add(photo);
     await _context.SaveChangesAsync();
 }