Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #79 from martijnmelchers/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Martijn Melchers authored Jan 10, 2020
2 parents 4e53bfc + f0046fc commit b00aef5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DomainServices/Services/AvailabilityService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public async Task<Dictionary<long, Availability>> 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<long, Availability>();
foreach (Availability availability in list)
Expand Down
1 change: 0 additions & 1 deletion src/DomainServices/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public static IServiceCollection AddDomainServices(this IServiceCollection servi
services.AddScoped<IAddressService, AddressService>();
services.AddScoped<IGoogleMapsService, GoogleMapsService>();
services.AddScoped<ISicknessService, SicknessService>();

services.AddScoped<IAvailabilityService, AvailabilityService>();

// Database initialisation code below
Expand Down
2 changes: 1 addition & 1 deletion src/Web/Controllers/AvailabilityController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public async Task<IActionResult> 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")));
}
}

Expand Down

0 comments on commit b00aef5

Please sign in to comment.