public async Task <IActionResult> RenderReport() { var cheque = _chequeRepository.GetLastAsync().Result; var attachment = _reportRenderer.Render(cheque); await _mailBox.Send(attachment); return(Ok($"Message sent to {cheque.Rent.Client.Email}")); }