public BVisit(Visit visit)
        {
            var    config  = new MapperConfiguration(cfg => cfg.CreateMap <Visit, BVisit>());
            Mapper mapper  = new Mapper(config);
            BVisit tBVisit = mapper.Map <BVisit>(visit);

            this.VisitStatus = tBVisit.VisitStatus;
            this.StudentId   = tBVisit.StudentId;
            this.LectionId   = tBVisit.LectionId;
        }
 private bool Equals(BVisit other)
 {
     return(VisitStatus == other.VisitStatus &&
            StudentId == other.StudentId &&
            LectionId == other.LectionId);
 }