last day (428 days later) » 

8:05 AM
Hello sir
Sorry to invite you here
but as that room was public so i created this room so other users cannot enter
sir can you please help me refactor code that i have written
i have to send for review today
    public class DebtPaymentNotification
    {
        private readonly IDebtManagement _debtManagementManager;
        private readonly MyContext _context;
        public DebtPaymentNotification(IDebtManagement debtManagementManager,MyContext context)
        {
            this._debtManagementManager = debtManagementManager;
            this._context = context;
        }
        public void SendNotification()
        {
            int.TryParse(_context.variable["PaymentRemainderDays"], out int paymentRemainderDays);
Task description :
sir i want to create a background job that will send payment remainder to users in the form of email
So the thing is like this :

Suppose i have taken $1000 from you and you said that i need to return this money in 30 days.We both agreed upon this agreement.
Now after X days say for eg 10 days before hitting the due date you will send remainding me by sending remainder that i have to
pay $1000 for which only 10 days is left.

Below is the table :

Table : DebtPayment

PaymentId
UserId
AmountRecover
 

  last day (428 days later) »