public IActionResult Delete(int id) { var borrower = borrowerService.GetBorrowerByBorrowerID(id); borrowerService.Delete(borrower); return(RedirectToAction("Index")); }
public bool Delete(Guid id) { try { _borrowerService.Delete(id); return(true); } catch (Exception) { return(false); } }