このメソッドを ISchoolclassCodeRepository または ISchoolclassService に配置する必要がありますか?
/// <summary>
/// The client passes newly created and existing schoolclass codes.
/// The newly created schoolclass codes are returned.
/// </summary>
/// <param name="newAndExistingSchoolclassCodes">All schoolclass codes and the newly created by the user</param>
/// <param name="schoolyearId">The related schoolyear for a schoolclass code</param>
/// <returns>The newly created schoolclass codes</returns>
public IEnumerable<SchoolclassCode> GetNewCreatedSchoolclassCode(IEnumerable<SchoolclassCode> newAndExistingSchoolclassCodes, int schoolyearId)
{
var existingSchoolclassCodes = _uniOfWork.SchoolclassCodeRepository.GetSchoolclassCodes(schoolyearId).ToList();
var newSchoolclassCodes = existingSchoolclassCodes.Except(newAndExistingSchoolclassCodes,new SchoolclassCodeComparer());
return newSchoolclassCodes;
}