Esempio n. 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;
        }
Esempio n. 2
0
 private bool Equals(BHWGroup other)
 {
     return(HomeworkId == other.HomeworkId &&
            GroupId == other.GroupId);
 }