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; }
private bool Equals(BLection other) { return(GroupId == other.GroupId && LectorId == other.LectorId && StartedOn == other.StartedOn); }