コード例 #1
0
        public IActionResult Delete(int id)
        {
            var borrower = borrowerService.GetBorrowerByBorrowerID(id);

            borrowerService.Delete(borrower);
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 public bool Delete(Guid id)
 {
     try
     {
         _borrowerService.Delete(id);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }