public BLectorGroup(LectorGroup lectorGroup) { var config = new MapperConfiguration(cfg => cfg.CreateMap <LectorGroup, BLectorGroup>()); Mapper mapper = new Mapper(config); BLectorGroup tmpBLectorGroup = mapper.Map <BLectorGroup>(lectorGroup); this.LectorId = tmpBLectorGroup.LectorId; this.GroupId = tmpBLectorGroup.GroupId; }
private bool Equals(BLectorGroup other) { return(LectorId == other.LectorId && GroupId == other.GroupId); }