public async Task <Tuple <bool, string, LoanDetailsViewModel> > DownloadDocument(LoanDetailsViewModel loanDetailsViewModel) { HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK); Tuple <bool, string, LoanDetailsViewModel> resultView = null; try { resultView = await _repoLoans.DownloadDocument(loanDetailsViewModel); } catch (Exception ex) { ErrorLog.Write(ex); } return(resultView); }