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

            return(new FileActionResult(pdfDocument));
        }
Ejemplo n.º 2
0
        public async Task <IHttpActionResult> GetTask(int id)
        {
            var wordsuite = await _service.GetByIDAsync(id);

            var pdfDocument = _generator.GetTaskInPdf(wordsuite);

            return(new FileActionResult(pdfDocument));
        }