public static SegmentViewModel Create(SegmentDomainModel segmentDomain) { return new SegmentViewModel { Id = segmentDomain.Id, CarSegment = segmentDomain.CarSegment, }; }
public static Segment Create(SegmentDomainModel segmentDomain) { return(new Segment { Id = segmentDomain.Id, CarSegment = segmentDomain.CarSegment, }); }
public static Segment CreateSegment(this SegmentDomainModel segmentDomain) { return(Create(segmentDomain)); }