public async Task <Comment> CreateAsync(Comment comment) { _context.Add(comment); await _context.SaveChangesAsync(); return(comment); }
public async Task CreateAsync(Photo photo) { _context.Add(photo); await _context.SaveChangesAsync(); }