Example #1
0
 internal List <AllowanceRDTO> GetActiveAllowncesAt(DateTime curDateTime)
 {
     try
     {
         return(AllowancesDetails.Count == 0 ? new List <AllowanceRDTO>() : AllowancesDetails.Where(x => curDateTime.Date >= DateTime.Parse(x.FromDate).Date&& curDateTime.Date <= DateTime.Parse(x.EndDate).Date).ToList());
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Example #2
0
 internal void Initialize(IRepository <DictionaryValue, Guid> dictionaryValuesRepo)
 {
     Banks.ForEach(x => x.Banks = dictionaryValuesRepo);
     AllowancesDetails.ForEach(x => x.Allowances = dictionaryValuesRepo);
 }