public static BusinessOpeningHours_tbl ToDAL(BusinessOpeningHoursDTO h)
 {
     return(new BusinessOpeningHours_tbl
     {
         BusinessCode = h.BusinessCode,
         StartHour = h.StartHour,
         EndHour = h.EndHour,
         DayInWeek = h.DayInWeek
     });
 }
        public static List <BusinessOpeningHoursDTO> ListToDTO(List <BusinessOpeningHours_tbl> hourListDal)
        {
            List <BusinessOpeningHoursDTO> List = new List <BusinessOpeningHoursDTO>();

            foreach (BusinessOpeningHours_tbl h in hourListDal)
            {
                BusinessOpeningHoursDTO hour = new BusinessOpeningHoursDTO(h);
                List.Add(hour);
            }
            return(List);
        }