public BLectorCourse(LectorCourse lectorCourse) { var config = new MapperConfiguration(cfg => cfg.CreateMap <LectorCourse, BLectorCourse>()); Mapper mapper = new Mapper(config); BLectorCourse tmpBLectorCourse = mapper.Map <BLectorCourse>(lectorCourse); this.LectorId = tmpBLectorCourse.LectorId; this.CourseId = tmpBLectorCourse.CourseId; }
private bool Equals(BLectorCourse other) { return(LectorId == other.LectorId && CourseId == other.CourseId); }