private void OverDueIsGreaterThanFive() { LoanRepo repo = new LoanRepo(); if (repo.CalculateDate(l.StudentId, l.ResourceId) > 0 && repo.CalculateDate(l.StudentId, l.ResourceId) < 5) { l.OverDueCharge += (l.DateReturned - l.DueDate).Days * 5m; l.NonReturnCharge += r.PurchasePrice; } }
private void OverDueIsZero() { LoanRepo repo = new LoanRepo(); if (repo.CalculateDate(l.StudentId, l.ResourceId) < 0) { l.OverDueCharge = 0; l.NonReturnCharge = 0; } }