public override TDomain Translate(ValueTextEntry from) { var to = new TDomain(); to.Id = from.Value; to.Name = from.Text; return(to); }
public override ValueTextEntry Translate(TDomain from) { var to = new ValueTextEntry(); to.Value = from.Id; to.Text = from.Name; return(to); }