Beispiel #1
0
 public async Task <IList <DayOfWeekInterval> > RetrieveWeekSchedule(int id)
 {
     return(DayOfWeekInterval.Purify((await RetrieveAsync(id)).Experts.Where(r => r.IsActive).SelectMany(r => DayOfWeekInterval.Parse(r.WorkingHours)).ToList()));
 }
Beispiel #2
0
        public override Site MapToEntity()
        {
            Site entity = base.MapToEntity();

            entity.WorkingHours          = String.Join(DayOfWeekInterval.DayOfWeekIntervalsSeparator.ToString(), DayOfWeekInterval.Purify(WorkingHours).Select(r => r.ToString()));
            entity.ImportRelativeFtpPath = ImportRelativeFtpPath;
            entity.ShuffleExperts        = ShuffleExperts;

            entity.FtpLogin    = FtpLogin;
            entity.FtpPassword = FtpPassword;
            entity.SendEmailNotificationsToCustomer = SendEmailNotificationsToCustomer;
            entity.InjectButtonToSrp     = InjectButtonToSrp;
            entity.InjectButtonToVdp     = InjectButtonToVdp;
            entity.InjectButtonToSidebar = InjectButtonToSidebar;
            entity.InjectWidgetToSaw     = InjectWidgetToSaw;

            return(entity);
        }
Beispiel #3
0
        public override Expert MapToEntity()
        {
            Expert expert = base.MapToEntity();

            expert.WorkingHours = String.Join(DayOfWeekInterval.DayOfWeekIntervalsSeparator.ToString(), DayOfWeekInterval.Purify(WorkingHours).Select(r => r.ToString()));
            return(expert);
        }