public IHttpActionResult GetWords(int id)
        {
            var wordsuite   = _service.GetByID(id);
            var pdfDocument = _generator.GetWordsInPdf(wordsuite);

            return(new FileActionResult(pdfDocument));
        }
Example #2
0
        public async Task <IHttpActionResult> GetWords(int id)
        {
            var wordsuite = await _service.GetByIDAsync(id);

            var pdfDocument = _generator.GetWordsInPdf(wordsuite);

            return(new FileActionResult(pdfDocument));
        }