Exemplo n.º 1
0
        public List <DbTechnologies> toDbITProvider(ITProvider p)
        {
            this.Username    = p.Username;
            this.Name        = p.Name;
            this.Description = p.Description;
            this.Review      = p.Review;
            this.NoOfReviews = p.NoOfReviews;
            this.Type        = p.Type;

            List <DbTechnologies> techs = new List <DbTechnologies>();

            for (int i = 0; i < p.Technologies.Count; ++i)
            {
                DbTechnologies t = new DbTechnologies();
                t.toDbTechnology(Username, p.Technologies.ElementAt(i));
                techs.Add(t);
            }
            return(techs);
        }
Exemplo n.º 2
0
 public ITProviderCredentials toITProviderCredentials(ITProvider provider)
 {
     return(new ITProviderCredentials(Password, provider));
 }