public BHomework(Homework homework) { var config = new MapperConfiguration(cfg => cfg.CreateMap <Homework, BHomework>()); Mapper mapper = new Mapper(config); BHomework tmpBHomework = mapper.Map <BHomework>(homework); this.Name = tmpBHomework.Name; this.Deskription = tmpBHomework.Deskription; }
private bool Equals(BHomework other) { return(Name == other.Name && Deskription == other.Deskription); }