Beispiel #1
0
        public BLection(Lection lection)
        {
            var      config      = new MapperConfiguration(cfg => cfg.CreateMap <Lection, BLection>());
            Mapper   mapper      = new Mapper(config);
            BLection tmpBLection = mapper.Map <BLection>(lection);

            this.GroupId   = tmpBLection.GroupId;
            this.LectorId  = tmpBLection.LectorId;
            this.StartedOn = tmpBLection.StartedOn;
        }
Beispiel #2
0
 private bool Equals(BLection other)
 {
     return(GroupId == other.GroupId &&
            LectorId == other.LectorId &&
            StartedOn == other.StartedOn);
 }