public static LocationType ToLocationType(this LocationTypeV1DTO item) { if (item == null) { throw new ArgumentException(nameof(item)); } LocationType locationType = new LocationType(); locationType.CopyFromLocationTypeV1DTO(item); return(locationType); }
public static LocationTypeV1DTO ToLocationTypeV1DTO(this LocationType item) { if (item == null) { throw new ArgumentException(nameof(item)); } LocationTypeV1DTO locationTypeV1DTO = new LocationTypeV1DTO(); locationTypeV1DTO.CopyFromLocationType(item); return(locationTypeV1DTO); }
public static void CopyFromLocationType(this LocationTypeV1DTO to, LocationType from) { to.LocationTypeId = from.LocationTypeId; to.LocationTypeName = from.LocationTypeName; }