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