예제 #1
0
        public MemberRegistry(SerugeesDbContext context)
        {
            _context = context;

            /* if( _context.Loans.Count() == 0)
             *   Add(new Member { Amount = 2500000,DurationInMonths=3, MembersId=2, IsActive=true  });*/
        }
예제 #2
0
        public LoanRegistry(SerugeesDbContext context)
        {
            _context = context;

            if (_context.Loans.Count() == 0)
            {
                Add(new Loan {
                    Amount = 2500000, DurationInMonths = 3, MemberId = 2, DateRequested = System.DateTime.Now, IsActive = '1'
                });
            }
        }