Example #1
0
        public static ServiceLocationAssociation ToServiceLocationAssociation(this ServiceLocationAssociationV1DTO item)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            ServiceLocationAssociation serviceLocationAssociation = new ServiceLocationAssociation();

            serviceLocationAssociation.CopyFromServiceLocationAssociationV1DTO(item);
            return(serviceLocationAssociation);
        }
Example #2
0
 public static void CopyFromServiceLocationAssociation(this ServiceLocationAssociationV1DTO to, ServiceLocationAssociation from)
 {
     to.ServiceLocationAssociation = from.ServiceLocationAssociation1;
     to.ServiceId  = from.ServiceId;
     to.LocationId = from.LocationId;
 }