/// <summary> /// Delete a borrower /// </summary> /// <param name="entity"></param> public void Remove(BorrowerDTO entity) { try { // call repository method to delete borrower var selectedBorrower = _mapper.Map <BorrowerDTO, Borrower>(entity); _repository.Remove(selectedBorrower); } catch (Exception ex) { throw ex; } //return isDeleted; }