public ActionResult <Comment> PostComment(int id, Comment comment) { Task task = _taskRepository.GetBy(id); Employee employee = _employeeRepository.GetBy(comment.Author.Id); comment.Author = employee; task.addComment(comment); _taskRepository.Update(task); _taskRepository.SaveChanges(); return(CreatedAtAction(nameof(GetComment), new { id = comment.Id }, comment)); }