private Tag Build(TagRE tagRe) { var tag = new Tag(); tag.Id = tagRe.Id; tag.X = tagRe.X; tag.Y = tagRe.Y; tag.Z = tagRe.Z; tag.SignalFrequency = tagRe.SignalFrequency; return(tag); }
private TagRE Build(Tag tag) { var tagRE = new TagRE(); tagRE.Id = tag.Id; tagRE.X = tag.X; tagRE.Y = tag.Y; tagRE.Z = tag.Z; tagRE.SignalFrequency = tag.SignalFrequency; return(tagRE); }
public Tag Insert(Tag tag) { TagRE tagRe = _tagRepository.Insert(Build(tag)); return(Build(tagRe)); }