public static void From(StandardListItemDto dto, StandardListItem domainObject) { domainObject.Id = dto.Id; domainObject.StandardListId = dto.StandardListId; domainObject.SentenceLanguage = dto.SentenceLanguage; domainObject.WordLanguage = dto.WordLanguage; domainObject.Word = dto.Word; domainObject.Sentence = dto.Sentence; domainObject.WordLanguage = dto.WordLanguage; domainObject.SentenceLanguage = dto.SentenceLanguage; }
public static StandardListItemDto FromNoSound(StandardListItem domainObject) { var dto = new StandardListItemDto(); dto.StandardListId = domainObject.StandardListId; dto.Id = domainObject.Id; dto.Word = domainObject.Word; dto.Sentence = domainObject.Sentence; dto.WordLanguage = domainObject.WordLanguage; dto.SentenceLanguage = domainObject.SentenceLanguage; return(dto); }