public BCommentFor(CommentFor commentFor) { var config = new MapperConfiguration(cfg => cfg.CreateMap <Comment, BComment>()); Mapper mapper = new Mapper(config); BCommentFor tmpBCommentFor = mapper.Map <BCommentFor>(commentFor); this.Name = tmpBCommentFor.Name; }
private bool Equals(BCommentFor other) { return(Name == other.Name); }