private ServiceHours CreateModel(ServiceHoursTypeEnum shType)
 {
     return(new ServiceHours
     {
         Id = Guid.NewGuid(),
         ServiceHourTypeId = shType.ToString().GetGuid(),
         AdditionalInformations = new HashSet <ServiceHoursAdditionalInformation>(),
         DailyOpeningTimes = new HashSet <DailyOpeningTime>()
     });
 }
Ejemplo n.º 2
0
 private IEnumerable <ServiceHours> GetHoursByType(ICollection <ServiceHours> openingHours, ServiceHoursTypeEnum type)
 {
     return(openingHours
            .Where(j => typesCache.Compare <ServiceHourType>(j.ServiceHourTypeId, type.ToString()))
            .OrderBy(x => x.OrderNumber)
            .ThenBy(x => x.Created));
 }