Exemplo n.º 1
0
        public IEnumerable <string> GetBranchHours(int branchId)
        {
            var hours = _context.BranchHours
                        .Include(bh => bh.Branch)
                        .Where(bh => bh.Branch.Id == branchId);

            return(DateHelpers.NormalizeBranchHours(hours)); // DateHelpers - OUR class which we implement in LibraryServices
        }
Exemplo n.º 2
0
        public IEnumerable <string> GetBranchHours(int branchId)
        {
            var hours = _context.BranchHours
                        .Include(bh => bh.Branch)
                        .Where(bh => bh.Branch.Id == branchId);

            var displayHours = DateHelpers.HumanizeBusinessHours(hours);

            return(displayHours);
        }