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())); }
public Customer toCustomer(DbContactInfo ci) { return(new Customer(Username, Name, Description, ci.toContactInfo())); }