public static UnderTrackGroup MapToDbModel(this UnderTrackGroupDto underTrackGroupDto) { var underTrackGroup = new UnderTrackGroup { CenterId = underTrackGroupDto.CenterId, Name = underTrackGroupDto.Name, Description = underTrackGroupDto.Description, }; if (underTrackGroupDto.Id.HasValue) { underTrackGroup.Id = underTrackGroupDto.Id.Value; } return(underTrackGroup); }
public void AddGroup(UnderTrackGroup underTrackGroup) { AddEntity(underTrackGroup); }