public HolidaysAttendanceDetailsBLL GetByHolidayAttendanceDetailID(int HolidayAttendanceDetailID) { HolidaysAttendanceDetailsBLL HolidaysAttendanceDetailsBLL = null; HolidaysAttendanceDetails HolidayAttendanceDetail = new HolidaysAttendanceDetailsDAL().GetByHolidayAttendanceDetailID(HolidayAttendanceDetailID); if (HolidayAttendanceDetail != null) { HolidaysAttendanceDetailsBLL = new HolidaysAttendanceDetailsBLL().MapHolidayAttendanceDetail(HolidayAttendanceDetail); } return(HolidaysAttendanceDetailsBLL); }
public List <HolidaysAttendanceDetailsBLL> GetHolidaysAttendanceDetailsByHolidayAttendanceID(int id) { List <HolidaysAttendanceDetails> HolidaysAttendanceDetailsList = new HolidaysAttendanceDetailsDAL().GetHolidaysAttendanceDetailsByHolidayAttendanceID(id); List <HolidaysAttendanceDetailsBLL> HolidaysAttendanceDetailsBLLList = new List <HolidaysAttendanceDetailsBLL>(); if (HolidaysAttendanceDetailsList.Count > 0) { foreach (var item in HolidaysAttendanceDetailsList) { HolidaysAttendanceDetailsBLLList.Add(new HolidaysAttendanceDetailsBLL() { HolidayAttendanceDetailID = item.HolidayAttendanceDetailID, EmployeeCareerHistory = new EmployeesCareersHistoryBLL().MapEmployeeCareerHistory(item.EmployeesCareersHistory), HolidaysAttendance = new HolidaysAttendanceBLL() { HolidayAttendanceID = item.HolidayAttendanceID } }); } } return(HolidaysAttendanceDetailsBLLList); }