public async Task <Comment> UpdateAsync(Comment comment) { _context.Entry(comment).State = EntityState.Modified; await _context.SaveChangesAsync(); return(comment); }
public async Task <Photo> UpdateAsync(Photo photo) { _context.Entry(photo).State = EntityState.Modified; await _context.SaveChangesAsync(); return(photo); }