/// <summary> NewHours- the owner add the opening hours of his business to db
 public static List <BusinessOpeningHours_tbl> NewHours(List <BusinessOpeningHours_tbl> hdal)
 {
     foreach (var h in hdal)
     {
         try
         {
             using (projectDBEntities5 db = new projectDBEntities5())
             {
                 BusinessOpeningHours_tbl newHour = new BusinessOpeningHours_tbl
                 {
                     BusinessCode = h.BusinessCode,
                     StartHour    = h.StartHour,
                     EndHour      = h.EndHour,
                     DayInWeek    = h.DayInWeek,
                 };
                 db.BusinessOpeningHours_tbl.Add(newHour);
                 db.SaveChanges();
             }
         }
         catch (Exception e)
         {
             Console.WriteLine(e);
             return(null);
         }
     }
     return(hdal);
 }
 public BusinessOpeningHoursDTO(DAL.BusinessOpeningHours_tbl hour)
 {
     this.BusinessCode = hour.BusinessCode;
     this.StartHour    = hour.StartHour;
     this.EndHour      = hour.EndHour;
     this.DayInWeek    = hour.DayInWeek;
 }