public async Task AddTestCaseComment(long testId, TestCaseComment comment) { var test = await GetTest(testId); comment.TestCase = test; await _dbContext.TestCaseComments.AddAsync(comment); await _dbContext.SaveChangesAsync(); }
public async Task UpdateComment(TestCaseComment comment) { _dbContext.TestCaseComments.Update(comment); await _dbContext.SaveChangesAsync(); }