示例#1
0
        public ITProvider toITProvider(DbContactInfo ci, List <DbTechnologies> techs)
        {
            List <string> technologies = new List <string>();

            foreach (DbTechnologies t in techs)
            {
                technologies.Add(t.Technology);
            }
            return(new ITProvider(Username, Name, Description, Review, NoOfReviews, technologies, Type, ci.toContactInfo()));
        }
示例#2
0
 public Customer toCustomer(DbContactInfo ci)
 {
     return(new Customer(Username, Name, Description, ci.toContactInfo()));
 }