Exemple #1
0
        public BHWGroup(HWGroup hwGroup)
        {
            var      config      = new MapperConfiguration(cfg => cfg.CreateMap <HWGroup, BHWGroup>());
            Mapper   mapper      = new Mapper(config);
            BHWGroup tmpBHWGroup = mapper.Map <BHWGroup>(hwGroup);

            this.HomeworkId = tmpBHWGroup.HomeworkId;
            this.GroupId    = tmpBHWGroup.GroupId;
        }
Exemple #2
0
 private bool Equals(BHWGroup other)
 {
     return(HomeworkId == other.HomeworkId &&
            GroupId == other.GroupId);
 }