public static SegmentViewModel Create(SegmentDomainModel segmentDomain)
 {
     return new SegmentViewModel
     {
         Id = segmentDomain.Id,
         CarSegment = segmentDomain.CarSegment,
     };
 }
예제 #2
0
 public static Segment Create(SegmentDomainModel segmentDomain)
 {
     return(new Segment
     {
         Id = segmentDomain.Id,
         CarSegment = segmentDomain.CarSegment,
     });
 }
예제 #3
0
 public static Segment CreateSegment(this SegmentDomainModel segmentDomain)
 {
     return(Create(segmentDomain));
 }