Пример #1
0
        // GET api/<controller>
        public IEnumerable <Document> Get(int page = 1, int docsPerPage = 20)
        {
            using (var context = new Engine.SvdEntities())
            {
                var documents = LSA.GetDocuments(context, page, docsPerPage);

                return(Mapper.Map <IEnumerable <Engine.Document>, IEnumerable <Document> >(documents, opt => opt.Items["context"] = context));;
            }
        }