Esempio n. 1
0
 public static Therapist MapEditTherapistDTOToTherapist(EditTherapistDTO therapist, Therapist edited, TherapistType tt)
 {
     edited.City          = therapist.City;
     edited.Email         = therapist.Email;
     edited.FirstName     = therapist.FirstName;
     edited.HouseNumber   = therapist.HouseNumber;
     edited.LastName      = therapist.LastName;
     edited.PhoneNumber   = therapist.PhoneNumber;
     edited.PostalCode    = therapist.PostalCode;
     edited.Street        = therapist.Street;
     edited.Website       = therapist.Website;
     edited.TherapistType = tt;
     return(edited);
 }
Esempio n. 2
0
        public static Therapist MapAddTherapistDTOToTherapist(AddTherapistDTO therapist, TherapistType type)
        {
            Therapist ther = new Therapist
            {
                City          = therapist.City,
                Email         = therapist.Email,
                FirstName     = therapist.FirstName,
                HouseNumber   = therapist.HouseNumber,
                LastName      = therapist.LastName,
                PhoneNumber   = therapist.PhoneNumber,
                PostalCode    = therapist.PostalCode,
                Street        = therapist.Street,
                TherapistType = type,
                Website       = therapist.Website
            };

            ther.OpeningTimes = therapist.OpeningTimes;
            return(ther);
        }