Exemple #1
0
        public Dictionary <string, string> Details(string a_d_id)
        {
            var list = new List <String>();
            var dic  = new Dictionary <string, string>();

            var listAD = Find(a_d_id);
            DefaultPostgresProviderAuthor   author   = new DefaultPostgresProviderAuthor();
            DefaultPostgresProviderDocument document = new DefaultPostgresProviderDocument();
            var listA = author.Find(listAD.First().Author_id.ToString());
            var listD = document.Find(listAD.First().Document_id.ToString());

            dic.Add(listA.First().Name.ToString(), listD.First().Title.ToString());
            return(dic);
        }
        public IList <DocumentEntity> Details(string id)
        {
            DefaultPostgresProviderDocument doc = new DefaultPostgresProviderDocument();
            var author_document            = FindAuthors(id);
            List <DocumentEntity> document = new List <DocumentEntity>();

            foreach (var item in author_document)
            {
                var d = doc.Find(item.Document_id.ToString());
                document.Add(d.First());
            }
            IList <DocumentEntity> docs = document;

            return(docs);
        }