var course = this.catalogManager.GetCourseIfExists(courseNr); // Returns (Course) null if not found
if (course == null)
{
course = new Course { MaterialNumber = courseNr};
course.Url = "some URL";
this.courseRepository.Add(course);
}
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/9a27b8d1-b919-4123-88dd-bd8ac6f83c20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.