public void IncreaseDepositForAll(decimal Amount, string AdminNationalCode)
 {
     foreach (var item in dc.PeopleSelectCommand().Where(x => x.IsActive))
     {
         try
         {
             dc.DepositInsertCommand(Guid.NewGuid(), DateTime.Now, Amount, null, true, AdminNationalCode, item.NationalCode, true);
         }
         catch { }
     }
 }
        public void ContributionLoan(string adminNationalCode)
        {
            var People = dc.PeopleSelectCommand().Where(x => x.IsActive == true);

            foreach (var person in People)
            {
                try
                {
                    Guid LoanId = Guid.NewGuid();
                    dc.LoanInsertCommand(LoanId, DateTime.Now, person.Contribution ?? 0, "[NOT DEFIND]", true, adminNationalCode, person.NationalCode, true, true);
                    new InstallementsService().AutomaticInstallement(LoanId, 1);
                }
                catch { }
            }
        }
コード例 #3
0
        public List <PeopleSelectCommandResult> GetPeople()
        {
            var people = dc.PeopleSelectCommand().ToList();

            return(people);
        }