public BLector(Lector lector) { var config = new MapperConfiguration(cfg => cfg.CreateMap <Lector, BLector>()); Mapper mapper = new Mapper(config); BLector tmpBLector = mapper.Map <BLector>(lector); this.FullName = tmpBLector.FullName; this.Email = tmpBLector.Email; this.Password = tmpBLector.Password; }
private bool Equals(BLector other) { return(FullName == other.FullName && Email == other.Email && Password == other.Password); }