public IEnumerable <DocumentsPivot> GetALL()
        {
            IEnumerable <GEN_Documents>  documentes       = documentsRepository.GetAll().ToList();
            IEnumerable <DocumentsPivot> documentesPivots = Mapper.Map <IEnumerable <GEN_Documents>, IEnumerable <DocumentsPivot> >(documentes);

            return(documentesPivots);
        }
Example #2
0
        public async Task <IActionResult> Index()
        {
            var documents = await _documentsRepository.GetAll();

            return(Ok(documents));
        }