public static void From(StandardListDto dto, StandardList domainObject) { domainObject.Id = dto.Id; domainObject.DefaultSentenceLanguage = dto.DefaultSentenceLanguage; domainObject.DefaultWordLanguage = dto.DefaultWordLanguage; domainObject.StandardListName = dto.StandardListName; }
public static StandardListDto FromNoSound(StandardList domainObject) { var dto = new StandardListDto(); dto.Id = domainObject.Id; dto.DefaultSentenceLanguage = domainObject.DefaultSentenceLanguage; dto.DefaultWordLanguage = domainObject.DefaultWordLanguage; dto.StandardListName = domainObject.StandardListName; dto.StandardListItems = domainObject.StandardListItems.Select(StandardListItemDto.FromNoSound).OrderBy(o => o.Word).ToList(); //todo add items return(dto); }