Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public IList <AuthorEntity> Details(string id)
        {
            DefaultPostgresProviderAuthor author = new DefaultPostgresProviderAuthor();
            var author_document   = FindDocument(id);
            List <AuthorEntity> a = new List <AuthorEntity>();

            foreach (var item in author_document)
            {
                var d = author.Find(item.Author_id.ToString());
                a.Add(d.First());
            }
            IList <AuthorEntity> auth = a;

            return(auth);
        }