示例#1
0
        public static List <Therapists1> ConvertToListDto(List <Therapists> lst)
        {
            if (lst == null)
            {
                return(null);
            }
            List <Therapists1> listWithCategories = lst.Select(t =>
            {
                //return  new Therapists1(t);
                Therapists1 therapist = new Therapists1(t);
                return(therapist);
            }).ToList();

            return(listWithCategories);
        }
示例#2
0
 //-----------methodes => convertors-----------
 public static Therapists Todal(Therapists1 t)
 {
     return(new Dal.Therapists
     {
         TherapistId = t.TherapistId,
         FirstName = t.FirstName,
         LastName = t.LastName,
         TherapistTz = t.TherapistTz,
         DateOfBirth = t.DateOfBirth,
         PhoneNumber = t.PhoneNumber,
         Email = t.Email,
         Password = t.Password,
         Image = t.Image,
         ServiceAreaId = t.ServiceAreaId,
         Address = t.Address,
         AboutMe = t.AboutMe,
         Diploma = t.Diploma
     });
 }