diff --git a/src/DomainServices/Services/AvailabilityService.cs b/src/DomainServices/Services/AvailabilityService.cs index 80eb40a..52ac867 100644 --- a/src/DomainServices/Services/AvailabilityService.cs +++ b/src/DomainServices/Services/AvailabilityService.cs @@ -75,7 +75,7 @@ public async Task> GetUnavailabilitiesForFuture(i { var list = await _db.Availabilities .OrderByDescending(c => c.EndTime) - .Where(c => c.StartTime > startDate && c.Employee.Id == employeeId) + .Where(c => c.StartTime > startDate && c.Employee.Id == employeeId && c.EventTitle == "Niet beschikbaar") .ToListAsync(); var dictionary = new Dictionary(); foreach (Availability availability in list) diff --git a/src/DomainServices/Startup.cs b/src/DomainServices/Startup.cs index 58b4628..9e96441 100644 --- a/src/DomainServices/Startup.cs +++ b/src/DomainServices/Startup.cs @@ -38,7 +38,6 @@ public static IServiceCollection AddDomainServices(this IServiceCollection servi services.AddScoped(); services.AddScoped(); services.AddScoped(); - services.AddScoped(); // Database initialisation code below diff --git a/src/Web/Controllers/AvailabilityController.cs b/src/Web/Controllers/AvailabilityController.cs index 587bd7f..39e0a6a 100644 --- a/src/Web/Controllers/AvailabilityController.cs +++ b/src/Web/Controllers/AvailabilityController.cs @@ -58,7 +58,7 @@ public async Task Index(String j) var test = Request.Form[item].ToString(); foreach (var s in test.Split(',')) { - dateTimes.Add(DateTime.Parse(s)); + dateTimes.Add(DateTime.Parse(s, new System.Globalization.CultureInfo("nl-NL"))); } }