private bool Equals(BGroup other) { return(Name == other.Name && CourseId == other.CourseId && StartDate == other.StartDate && EndDate == other.EndDate); }
public BGroup(Group group) { var config = new MapperConfiguration(cfg => cfg.CreateMap <Group, BGroup>()); Mapper mapper = new Mapper(config); BGroup tmpBGroup = mapper.Map <BGroup>(group); this.Name = tmpBGroup.Name; this.CourseId = tmpBGroup.CourseId; this.StartDate = tmpBGroup.StartDate; this.EndDate = tmpBGroup.EndDate; }