Exemplo n.º 1
0
        // GET: LoanCompany/Delete/5
        public async Task <IActionResult> Delete(string id)
        {
            await _loanRepository.DeleteLoan(id);

            return(RedirectToAction(nameof(Index)));
        }
Exemplo n.º 2
0
 public bool DeleteLoanInformation(Guid loan)
 {
     return(_loanRepository.DeleteLoan(loan));
 }
Exemplo n.º 3
0
 public async Task <Loan> DeleteLoan(int id)
 {
     return(await _loanRepository.DeleteLoan(id));
 }