public void SeedCodecoolerArtifacts()
        {
            CodecoolerArtifactDAO codecoolerArtifactDAO = new CodecoolerArtifactDAO();
            var allCodecoolersArtifacts      = codecoolerArtifactDAO.ReadAllEntities();
            var allCodecoolersArtifactsNames = new List <CodecoolerArtifact>();

            foreach (var artifact in allCodecoolersArtifacts)
            {
                artifact.ArtifactName = ArtifactDAO.ReadEntityByID(artifact.ArtifactId).Name;
                allCodecoolersArtifactsNames.Add(artifact);
            }

            this.CodecoolersArtifactsList = allCodecoolersArtifacts;
        }
        public void SeedCodecoolerArtifactsById(int id)
        {
            CodecoolerArtifactDAO codecoolerArtifactDAO = new CodecoolerArtifactDAO();
            var allCodecoolersArtifacts      = codecoolerArtifactDAO.ReadAllEntitiesByCodecoolerID(id);
            var allCodecoolersArtifactsNames = new List <CodecoolerArtifact>();

            foreach (var artifact in allCodecoolersArtifacts)
            {
                artifact.ArtifactName   = ArtifactDAO.ReadEntityByID(artifact.ArtifactId).Name;
                artifact.ArtifactType   = ArtifactDAO.ReadEntityByID(artifact.ArtifactId).Type;
                artifact.ArtifactValue  = ArtifactDAO.ReadEntityByID(artifact.ArtifactId).Price;
                artifact.ArtifactAmount = ArtifactDAO.ReadEntityByID(artifact.ArtifactId).Amount;

                allCodecoolersArtifactsNames.Add(artifact);
            }

            this.CodecoolersArtifactsList = allCodecoolersArtifacts;
        }
 public void SeedArtifactsByID(int ID)
 {
     this.Entity = ArtifactDAO.ReadEntityByID(ID);
 }