Ejemplo n.º 1
0
        public IEnumerable <string> GetBranchHours(int branchId)
        {
            IEnumerable <BranchHour> hours = _context.BranchHours
                                             .Where(c => c.Branch.Id == branchId)
                                             .OrderBy/*Descending*/ (c => c.DayOfWeek);

            return(DataHelpers.HumanizeBusinessHours(hours));
        }
        public IEnumerable <string> GetBranchHours(int branchId)
        {
            var hours = context.BranchHours.Where(a => a.Branch.Id == branchId);

            var displayHours =
                DataHelpers.HumanizeBusinessHours(hours);

            return(displayHours);
        }