Example #1
0
        public EmployeesAllowancesBLL GetByEmployeeAllowanceID(int EmployeeAllowanceID)
        {
            EmployeesAllowancesBLL EmployeesAllowancesBLL = null;
            EmployeesAllowances    EmployeesAllowance     = new EmployeesAllowancesDAL().GetEmployeesAllowancesByAllowanceID(EmployeeAllowanceID);

            if (EmployeesAllowance != null)
            {
                EmployeesAllowancesBLL = MapEmployeeAllowance(EmployeesAllowance);
            }

            return(EmployeesAllowancesBLL);
        }
Example #2
0
 internal EmployeesAllowancesBLL MapEmployeeAllowance(EmployeesAllowances EmployeeAllowance)
 {
     try
     {
         EmployeesAllowancesBLL EmployeeAllowanceBLL = null;
         if (EmployeeAllowance != null)
         {
             EmployeeAllowanceBLL = new EmployeesAllowancesBLL()
             {
                 EmployeeAllowanceID   = EmployeeAllowance.EmployeeAllowanceID,
                 Allowance             = new AllowancesBLL().MapAllowance(EmployeeAllowance.Allowances),
                 EmployeeCareerHistory = new EmployeesCareersHistoryBLL().MapEmployeeCareerHistory(EmployeeAllowance.EmployeesCareersHistory),
                 AllowanceStartDate    = EmployeeAllowance.AllowanceStartDate.Date,
                 IsActive    = EmployeeAllowance.IsActive,
                 CreatedDate = EmployeeAllowance.CreatedDate
             };
         }
         return(EmployeeAllowanceBLL);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }