diff --git a/.vs/AlfaPrentice/DesignTimeBuild/.dtbcache.v2 b/.vs/AlfaPrentice/DesignTimeBuild/.dtbcache.v2
new file mode 100644
index 0000000..0c586dd
Binary files /dev/null and b/.vs/AlfaPrentice/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/.vs/AlfaPrentice/v16/.suo b/.vs/AlfaPrentice/v16/.suo
new file mode 100644
index 0000000..5ccd77b
Binary files /dev/null and b/.vs/AlfaPrentice/v16/.suo differ
diff --git a/dotnet/AlfaPrentice.sln b/dotnet/AlfaPrentice.sln
new file mode 100644
index 0000000..d010876
--- /dev/null
+++ b/dotnet/AlfaPrentice.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30804.86
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AlfaPrentice", "AlfaPrentice\AlfaPrentice.csproj", "{F1B31CC9-8926-432F-945E-6E47A30E276C}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {F1B31CC9-8926-432F-945E-6E47A30E276C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F1B31CC9-8926-432F-945E-6E47A30E276C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F1B31CC9-8926-432F-945E-6E47A30E276C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F1B31CC9-8926-432F-945E-6E47A30E276C}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {9923371F-BE95-4DF6-8B5E-6A66760F5A2C}
+ EndGlobalSection
+EndGlobal
diff --git a/dotnet/AlfaPrentice/AlfaPrentice.csproj b/dotnet/AlfaPrentice/AlfaPrentice.csproj
new file mode 100644
index 0000000..7c0dcbd
--- /dev/null
+++ b/dotnet/AlfaPrentice/AlfaPrentice.csproj
@@ -0,0 +1,28 @@
+
+
+
+ net5.0
+ 7ad3dc27-95ec-4ea9-8715-97e5b90343e0
+ Linux
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dotnet/AlfaPrentice/AlfaPrentice.csproj.user b/dotnet/AlfaPrentice/AlfaPrentice.csproj.user
new file mode 100644
index 0000000..f3a4c02
--- /dev/null
+++ b/dotnet/AlfaPrentice/AlfaPrentice.csproj.user
@@ -0,0 +1,12 @@
+
+
+
+ AlfaPrentice
+ MvcControllerWithActionsScaffolder
+ root/Common/MVC/Controller
+ 600
+
+
+ ProjectDebugger
+
+
\ No newline at end of file
diff --git a/dotnet/AlfaPrentice/Controllers/BedrijfController.cs b/dotnet/AlfaPrentice/Controllers/BedrijfController.cs
new file mode 100644
index 0000000..0bf6b50
--- /dev/null
+++ b/dotnet/AlfaPrentice/Controllers/BedrijfController.cs
@@ -0,0 +1,56 @@
+using AlfaPrentice.Data;
+using AlfaPrentice.Models;
+using AlfaPrentice.Repositorys.Interfaces;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
+
+namespace AlfaPrentice.Controllers
+{
+ [Route("api/[controller]")]
+ [ApiController]
+ public class BedrijfController : ControllerBase
+ {
+ //constructor
+ public IBedrijfRepository bedrijfRepo;
+ public BedrijfController(IBedrijfRepository bedrijfRepo)
+ {
+ this.bedrijfRepo = bedrijfRepo;
+ }
+
+ [HttpGet]
+ public IEnumerable GetBedrijf()
+ {
+ var bedrijven =bedrijfRepo.GetBedrijven();
+ return bedrijven;
+
+ }
+
+ //get bedrijf by ID
+ [HttpGet("{Bedrijf_ID}")]
+ public Bedrijf GetBedrijf(int Bedrijf_ID)
+ {
+ var bedrijf = bedrijfRepo.GetBedrijf(Bedrijf_ID);
+ return bedrijf;
+ }
+
+ //add geheel bedrijf
+ [HttpPost]
+ public void AddBedrijf([FromBody] Bedrijf bedrijf)
+ {
+ bedrijfRepo.AddBedrijf(bedrijf);
+ }
+
+ //update een volledig bedrijf
+ [HttpPost]
+ public void UpdateBedrijf([FromBody] Bedrijf bedrijf)
+ {
+ bedrijfRepo.UpdateBedrijf(bedrijf);
+ }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Controllers/SollicitatieController.cs b/dotnet/AlfaPrentice/Controllers/SollicitatieController.cs
new file mode 100644
index 0000000..1f834f7
--- /dev/null
+++ b/dotnet/AlfaPrentice/Controllers/SollicitatieController.cs
@@ -0,0 +1,49 @@
+using AlfaPrentice.Data;
+using AlfaPrentice.Models;
+using AlfaPrentice.Repositorys.Interfaces;
+using Microsoft.AspNetCore.Mvc;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
+
+namespace AlfaPrentice.Controllers
+{
+ [Route("api/[controller]")]
+ [ApiController]
+ public class SollicitatieController : ControllerBase
+ {
+ //constructor
+ public ISollicitatieRepository sollicitatieRepo;
+ public SollicitatieController(ISollicitatieRepository sollicitatieRepo)
+ {
+ this.sollicitatieRepo = sollicitatieRepo;
+ }
+
+ //get list sollicitaties
+ [HttpGet]
+ public IEnumerable GetSollicitaties()
+ {
+ var sollicitaties = sollicitatieRepo.GetSollicitaties();
+ return sollicitaties;
+ }
+
+ //get sollicitatie by student_ID
+ [HttpGet("{Student_ID}")]
+ public Sollicitatie GetSollicitatie(int Student_ID)
+ {
+ var sollicitatie = sollicitatieRepo.GetSollicitatie(Student_ID);
+ return sollicitatie;
+ }
+
+ // POST api/
+ [HttpPost]
+ public void Post([FromBody] Sollicitatie sollicitatie)
+ {
+ sollicitatieRepo.AddSollicitatie(sollicitatie);
+ }
+
+ }
+}
diff --git a/dotnet/AlfaPrentice/Controllers/WeatherForecastController.cs b/dotnet/AlfaPrentice/Controllers/WeatherForecastController.cs
new file mode 100644
index 0000000..232aa4b
--- /dev/null
+++ b/dotnet/AlfaPrentice/Controllers/WeatherForecastController.cs
@@ -0,0 +1,39 @@
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.Extensions.Logging;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Controllers
+{
+ [ApiController]
+ [Route("[controller]")]
+ public class WeatherForecastController : ControllerBase
+ {
+ private static readonly string[] Summaries = new[]
+ {
+ "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
+ };
+
+ private readonly ILogger _logger;
+
+ public WeatherForecastController(ILogger logger)
+ {
+ _logger = logger;
+ }
+
+ [HttpGet]
+ public IEnumerable Get()
+ {
+ var rng = new Random();
+ return Enumerable.Range(1, 5).Select(index => new WeatherForecast
+ {
+ Date = DateTime.Now.AddDays(index),
+ TemperatureC = rng.Next(-20, 55),
+ Summary = Summaries[rng.Next(Summaries.Length)]
+ })
+ .ToArray();
+ }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Data/AlfaPrenticeContext.cs b/dotnet/AlfaPrentice/Data/AlfaPrenticeContext.cs
new file mode 100644
index 0000000..489a7f7
--- /dev/null
+++ b/dotnet/AlfaPrentice/Data/AlfaPrenticeContext.cs
@@ -0,0 +1,55 @@
+using AlfaPrentice.Models;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Data
+{
+ public class AlfaPrenticeContext : DbContext
+ {
+ public AlfaPrenticeContext(DbContextOptions options) : base(options)
+ {
+ }
+
+ //Gebruiker tabellen
+ public DbSet Gebruiker { get; set; }
+ public DbSet Adres { get; set; }
+ public DbSet Student { get; set; }
+ public DbSet Docent { get; set; }
+ public DbSet Mentor { get; set; }
+ public DbSet BPVDocent { get; set; }
+ public DbSet Stagecoordinator { get; set; }
+
+ //Bedrijf tabellen
+ public DbSet Bedrijf { get; set; }
+ public DbSet Praktijkbegeleider { get; set; }
+ public DbSet Stageplek { get; set; }
+ public DbSet Eisen { get; set; }
+
+ //agenda en bericht tabellen
+ public DbSet Bericht { get; set; }
+ public DbSet Agenda { get; set; }
+ public DbSet Afspraak { get; set; }
+ public DbSet AgendaBlock { get; set; }
+ public DbSet Deelnemer { get; set; }
+
+ //School tabellen
+ public DbSet Opleiding { get; set; }
+ public DbSet Klas { get; set; }
+
+ //stageperiode tabellen
+ public DbSet Sollicitatie { get; set; }
+ public DbSet Traject { get; set; }
+ public DbSet POK { get; set; }
+ public DbSet Weekstaten { get; set; }
+ public DbSet Evaluatie { get; set; }
+
+ //system tabel
+ public DbSet Session { get; set; }
+
+
+
+ }
+}
diff --git a/dotnet/AlfaPrentice/Dockerfile b/dotnet/AlfaPrentice/Dockerfile
new file mode 100644
index 0000000..bcc76ff
--- /dev/null
+++ b/dotnet/AlfaPrentice/Dockerfile
@@ -0,0 +1,22 @@
+#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
+
+FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base
+WORKDIR /app
+EXPOSE 80
+EXPOSE 443
+
+FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build
+WORKDIR /src
+COPY ["AlfaPrentice/AlfaPrentice.csproj", "AlfaPrentice/"]
+RUN dotnet restore "AlfaPrentice/AlfaPrentice.csproj"
+COPY . .
+WORKDIR "/src/AlfaPrentice"
+RUN dotnet build "AlfaPrentice.csproj" -c Release -o /app/build
+
+FROM build AS publish
+RUN dotnet publish "AlfaPrentice.csproj" -c Release -o /app/publish
+
+FROM base AS final
+WORKDIR /app
+COPY --from=publish /app/publish .
+ENTRYPOINT ["dotnet", "AlfaPrentice.dll"]
\ No newline at end of file
diff --git a/dotnet/AlfaPrentice/Models/Adres.cs b/dotnet/AlfaPrentice/Models/Adres.cs
new file mode 100644
index 0000000..3efe36e
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Adres.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Adres
+ {
+ [Key]
+ public int Adres_ID { get; set; }
+ public string Straat { get; set; }
+ public int Huisnummer { get; set; }
+ public string Toevoeging { get; set; }
+ public string Postcode { get; set; }
+ public string Plaats { get; set; }
+ public string Land { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Afspraak.cs b/dotnet/AlfaPrentice/Models/Afspraak.cs
new file mode 100644
index 0000000..bc6271b
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Afspraak.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Afspraak
+ {
+ [Key]
+ public int Afspraak_ID { get; set; }
+ public int Agenda_ID { get; set; }
+ public DateTime BeginDatumeTijd { get; set; }
+ public int EindDaatumTijd { get; set; }
+ public string Locatie { get; set; }
+ public string Omschrijving { get; set; }
+ public string Onderwerp { get; set; }
+ public int Gebruiker_ID { get; set; }
+ public int Docent_ID { get; set; }
+ public int Student_ID { get; set; }
+ public int Praktijkbegeleider_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Agenda.cs b/dotnet/AlfaPrentice/Models/Agenda.cs
new file mode 100644
index 0000000..a34bd1b
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Agenda.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Agenda
+ {
+ [Key]
+ public int Agenda_ID { get; set; }
+ public int AgendaBlock_ID { get; set; }
+ public int Gebruiker_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/AgendaBlok.cs b/dotnet/AlfaPrentice/Models/AgendaBlok.cs
new file mode 100644
index 0000000..2fba8b1
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/AgendaBlok.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class AgendaBlok
+ {
+ [Key]
+ public int AgendaBlok_ID { get; set; }
+ public DateTime BeginDatumTijd { get; set; }
+ public DateTime EindDatumTijd { get; set; }
+ public int Agenda_ID { get; set; }
+ public int Gebruiker_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/AppSettings.cs b/dotnet/AlfaPrentice/Models/AppSettings.cs
new file mode 100644
index 0000000..e956256
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/AppSettings.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class AppSettings
+ {
+ public string EmailSmtp { get; set; }
+ public string EmailUsername { get; set; }
+ public string EmailPassword { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/BPVDocent.cs b/dotnet/AlfaPrentice/Models/BPVDocent.cs
new file mode 100644
index 0000000..61e2bb1
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/BPVDocent.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class BPVDocent
+ {
+ [Key]
+ public int BPVdocent_ID { get; set; }
+ public int Docent_ID { get; set; }
+ public int Student_ID { get; set; }
+ public int Traject_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Bedrijf.cs b/dotnet/AlfaPrentice/Models/Bedrijf.cs
new file mode 100644
index 0000000..85325d9
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Bedrijf.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Bedrijf
+ {
+ [Key]
+ public int Bedrijf_ID { get; set; }
+ public string Naam { get; set; }
+ public string Logo { get; set; }
+ public string Beschrijving { get; set; }
+ public string Email { get; set; }
+ public int Telefoon { get; set; }
+ public string Status { get; set; }
+ public int Adres_ID { get; set; }
+
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Bericht.cs b/dotnet/AlfaPrentice/Models/Bericht.cs
new file mode 100644
index 0000000..87e2284
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Bericht.cs
@@ -0,0 +1,20 @@
+using Microsoft.EntityFrameworkCore.Metadata.Internal;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Bericht
+ {
+ [Key]
+ public int Bericht_ID { get; set; }
+ public string Onderwerp { get; set; }
+ public string Berichtt { get; set; }
+ public DateTime BerichtDatumTijd { get; set; }
+ public int Afzender { get; set; }
+ public int Gebruiker_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Deelnemer.cs b/dotnet/AlfaPrentice/Models/Deelnemer.cs
new file mode 100644
index 0000000..a828104
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Deelnemer.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Deelnemer
+ {
+ [Key]
+ public int Deelnemer_ID { get; set; }
+ public int Afspraak_ID { get; set; }
+ public int Student_ID { get; st; }
+ public int BPVdocent_ID { get; set; }
+ public int Docent_ID { get; set; }
+ public int Praktijkbegeleider_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Docent.cs b/dotnet/AlfaPrentice/Models/Docent.cs
new file mode 100644
index 0000000..51ad1fa
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Docent.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Docent : Gebruiker
+ {
+ [Key]
+ public int Docent_ID { get; set; }
+ public int Gebruiker_ID { get; set; }
+ public string DrieLetterCode { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Document.cs b/dotnet/AlfaPrentice/Models/Document.cs
new file mode 100644
index 0000000..d751c46
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Document.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Document
+ {
+ [Key]
+ public int Document_ID { get; set; }
+ public string Bestand { get; set; }
+ public DateTime UploadDatumTijd { get; set; }
+ public int Versie { get; set; }
+ public int Gebruiker_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Eisen.cs b/dotnet/AlfaPrentice/Models/Eisen.cs
new file mode 100644
index 0000000..c610d08
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Eisen.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Eisen
+ {
+ [Key]
+ public int Eisen_ID { get; set; }
+ public string Omschrijving { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Evaluatie.cs b/dotnet/AlfaPrentice/Models/Evaluatie.cs
new file mode 100644
index 0000000..ca75518
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Evaluatie.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Evaluatie
+ {
+ [Key]
+ public int Evaluatie_ID { get; set; }
+ public string Beoordeling { get; set; }
+ public string Feedbakc { get; set; }
+ public int Student_ID { get; set; }
+ public int BPVdocent_ID { get; set; }
+ public int Praktijkbegeleider_ID { get; set; }
+ public int EvaluatieDatumTIjd { get; set; }
+ public bool Accodering { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Gebruiker.cs b/dotnet/AlfaPrentice/Models/Gebruiker.cs
new file mode 100644
index 0000000..f7cd826
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Gebruiker.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Gebruiker
+ {
+ [Key]
+ public int Gebruiker_ID { get; set; }
+ public string Voornaam { get; set; }
+ public string Tussenvoegsel { get; set; }
+ public string Achternaam { get; set; }
+ public DateTime GeboorteDatum { get; set; }
+ public string Geslacht { get; set; }
+ public string Email { get; set; }
+ public int Telefoon { get; set; }
+ public string Wachtwoord { get; set; }
+ public string Profielfoto { get; set; }
+ public string Status { get; set; }
+ public int Adres_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Klas.cs b/dotnet/AlfaPrentice/Models/Klas.cs
new file mode 100644
index 0000000..b220adf
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Klas.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Klas
+ {
+ [Key]
+ public int Klas_ID { get; set; }
+ public string Klasnaam { get; set; }
+ public int Mentor_ID { get; set; }
+ public int Opeleiding { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Mentor.cs b/dotnet/AlfaPrentice/Models/Mentor.cs
new file mode 100644
index 0000000..1bff4b7
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Mentor.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Mentor
+ {
+ [Key]
+ public int Mentor_ID { get; set; }
+ public int Docent_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Opleiding.cs b/dotnet/AlfaPrentice/Models/Opleiding.cs
new file mode 100644
index 0000000..9c784e7
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Opleiding.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Opleiding
+ {
+ [Key]
+ public int Opleiding_ID { get; set; }
+ public string Naam { get; set; }
+ public string Omschrijving { get; set; }
+ public string Status { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/POK.cs b/dotnet/AlfaPrentice/Models/POK.cs
new file mode 100644
index 0000000..c48f009
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/POK.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class POK
+ {
+ [Key]
+ public int POK_ID { get; set; }
+ public bool Accodering { get; set; }
+ public DateTime AccoderingDatum { get; set; }
+ public DateTime AnnmaakDatum { get; set; }
+ public int Student_ID { get; set; }
+ public int BPVdocent_ID { get; set; }
+ public int Praktijkbegeleider_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Praktijkbegeleider.cs b/dotnet/AlfaPrentice/Models/Praktijkbegeleider.cs
new file mode 100644
index 0000000..d515d8f
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Praktijkbegeleider.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Praktijkbegeleider : Gebruiker
+ {
+ [Key]
+
+ public int Praktijkbegeleider_ID { get; set; }
+ public string Functie { get; set; }
+ public int Bedrijf_ID { get; set; }
+ public int Gebruiker_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Session.cs b/dotnet/AlfaPrentice/Models/Session.cs
new file mode 100644
index 0000000..9feca31
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Session.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Session
+ {
+ [Key]
+ public int Session_ID { get; set; }
+ public string SessionToken { get; set; }
+ public DateTime SessionVervalDatumTijd { get; set; }
+ public int Gebruiker_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Sollicitatie.cs b/dotnet/AlfaPrentice/Models/Sollicitatie.cs
new file mode 100644
index 0000000..bc284f2
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Sollicitatie.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Sollicitatie
+ {
+ [Key]
+ public int Sollicitatie_ID { get; set; }
+ public DateTime SolicitaieDatum { get; set; }
+ public string Status { get; set; }
+ public int Bedrijf_ID { get; set; }
+ public int Student_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/StagePlek.cs b/dotnet/AlfaPrentice/Models/StagePlek.cs
new file mode 100644
index 0000000..3cea09d
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/StagePlek.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Stageplek
+ {
+ [Key]
+ public int StagePlek_ID { get; set; }
+ public int AantalPlekken { get; set; }
+ public int Bedrijf_ID { get; set; }
+ public int Eisen_ID { get; set; }
+ public int Opleiding_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Stagecoordinator.cs b/dotnet/AlfaPrentice/Models/Stagecoordinator.cs
new file mode 100644
index 0000000..bfa42fc
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Stagecoordinator.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Stagecoordinator
+ {
+ [Key]
+ public int StageCoördinator_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Student.cs b/dotnet/AlfaPrentice/Models/Student.cs
new file mode 100644
index 0000000..118bf66
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Student.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Student : Gebruiker
+ {
+ [Key]
+ public int Student_ID { get; set; }
+ public DateTime BeginDatum { get; set; }
+ public int Leerjaar { get; set; }
+ public int Adres_ID { get; set; }
+ public string CV { get; set; }
+ public string Motivatiebrief { get; set; }
+ public string Programmeertalen { get; set; }
+ public string Weblinks { get; set; }
+ public int Gebruiker_ID { get; set; }
+ public int Klas_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Traject.cs b/dotnet/AlfaPrentice/Models/Traject.cs
new file mode 100644
index 0000000..e048c9d
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Traject.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Traject
+ {
+ [Key]
+ public int Traject_ID { get; set; }
+ public int Student_ID { get; set; }
+ public int BPVdocent_ID { get; set; }
+ public int Praktijkbegelijder_ID { get; set; }
+ public DateTime BeginDatum { get; set; }
+ public DateTime EindDatum { get; set; }
+ public int Evaluatie_ID { get; set; }
+ public int Weekstaten_ID { get; set; }
+ public int POK_ID { get; set; }
+ public int Sollicitatie_ID { get; set; }
+ public int StageCoördinator_ID { get; set; }
+ public int Document_ID { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Models/Weekstaten.cs b/dotnet/AlfaPrentice/Models/Weekstaten.cs
new file mode 100644
index 0000000..1ea4a64
--- /dev/null
+++ b/dotnet/AlfaPrentice/Models/Weekstaten.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Models
+{
+ public class Weekstaten
+ {
+ [Key]
+ public int Weekstaten_ID { get; set; }
+ public string Beschrijving { get; set; }
+ public DateTime BeginDatumTijd { get; set; }
+ public DateTime EindDatumTijd { get; set; }
+ public int Student_ID { get; set; }
+ public string Status { get; set; }
+ public int GewerkteUren { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Program.cs b/dotnet/AlfaPrentice/Program.cs
new file mode 100644
index 0000000..1c958c3
--- /dev/null
+++ b/dotnet/AlfaPrentice/Program.cs
@@ -0,0 +1,26 @@
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ CreateHostBuilder(args).Build().Run();
+ }
+
+ public static IHostBuilder CreateHostBuilder(string[] args) =>
+ Host.CreateDefaultBuilder(args)
+ .ConfigureWebHostDefaults(webBuilder =>
+ {
+ webBuilder.UseStartup();
+ });
+ }
+}
diff --git a/dotnet/AlfaPrentice/Properties/launchSettings.json b/dotnet/AlfaPrentice/Properties/launchSettings.json
new file mode 100644
index 0000000..4904edf
--- /dev/null
+++ b/dotnet/AlfaPrentice/Properties/launchSettings.json
@@ -0,0 +1,38 @@
+{
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:30460",
+ "sslPort": 44358
+ }
+ },
+ "$schema": "http://json.schemastore.org/launchsettings.json",
+ "profiles": {
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "launchUrl": "swagger",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "AlfaPrentice": {
+ "commandName": "Project",
+ "launchBrowser": true,
+ "launchUrl": "swagger",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ },
+ "dotnetRunMessages": "true",
+ "applicationUrl": "https://localhost:5001;http://localhost:5000"
+ },
+ "Docker": {
+ "commandName": "Docker",
+ "launchBrowser": true,
+ "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
+ "publishAllPorts": true,
+ "useSSL": true
+ }
+ }
+}
\ No newline at end of file
diff --git a/dotnet/AlfaPrentice/Repositorys/Interfaces/IAfspraakRepository.cs b/dotnet/AlfaPrentice/Repositorys/Interfaces/IAfspraakRepository.cs
new file mode 100644
index 0000000..2a01f71
--- /dev/null
+++ b/dotnet/AlfaPrentice/Repositorys/Interfaces/IAfspraakRepository.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Repositorys.Interfaces
+{
+ public interface IAfspraakRepository
+ {
+ }
+}
diff --git a/dotnet/AlfaPrentice/Repositorys/Interfaces/IAgendaRepository.cs b/dotnet/AlfaPrentice/Repositorys/Interfaces/IAgendaRepository.cs
new file mode 100644
index 0000000..488253c
--- /dev/null
+++ b/dotnet/AlfaPrentice/Repositorys/Interfaces/IAgendaRepository.cs
@@ -0,0 +1,18 @@
+using AlfaPrentice.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Repositorys.Interfaces
+{
+ public interface IAgendaRepository
+ {
+ //agenda functions
+ List GetAgendas();
+ Agenda GetAgenda(int Gebruiker_ID);
+ Agenda AddAgenda(Agenda agenda);
+
+ //agendablock functions
+ }
+}
diff --git a/dotnet/AlfaPrentice/Repositorys/Interfaces/IBedrijfRepository.cs b/dotnet/AlfaPrentice/Repositorys/Interfaces/IBedrijfRepository.cs
new file mode 100644
index 0000000..044b7cf
--- /dev/null
+++ b/dotnet/AlfaPrentice/Repositorys/Interfaces/IBedrijfRepository.cs
@@ -0,0 +1,16 @@
+using AlfaPrentice.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Repositorys.Interfaces
+{
+ public interface IBedrijfRepository
+ {
+ List GetBedrijven();
+ Bedrijf GetBedrijf(int Bedrijf_ID);
+ Bedrijf AddBedrijf(Bedrijf bedrijf);
+ Bedrijf UpdateBedrijf(Bedrijf bedrijf);
+ }
+}
diff --git a/dotnet/AlfaPrentice/Repositorys/Interfaces/ISollicitatieRepository.cs b/dotnet/AlfaPrentice/Repositorys/Interfaces/ISollicitatieRepository.cs
new file mode 100644
index 0000000..79cff41
--- /dev/null
+++ b/dotnet/AlfaPrentice/Repositorys/Interfaces/ISollicitatieRepository.cs
@@ -0,0 +1,15 @@
+using AlfaPrentice.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Repositorys.Interfaces
+{
+ public interface ISollicitatieRepository
+ {
+ List GetSollicitaties();
+ Sollicitatie GetSollicitatie(int Student_ID);
+ Sollicitatie AddSollicitatie(Sollicitatie Sollicitatie);
+ }
+}
diff --git a/dotnet/AlfaPrentice/Repositorys/implementaties/AfspraakRepository.cs b/dotnet/AlfaPrentice/Repositorys/implementaties/AfspraakRepository.cs
new file mode 100644
index 0000000..1ac4eb1
--- /dev/null
+++ b/dotnet/AlfaPrentice/Repositorys/implementaties/AfspraakRepository.cs
@@ -0,0 +1,133 @@
+using AlfaPrentice.Data;
+using AlfaPrentice.Models;
+using AlfaPrentice.Repositorys.Interfaces;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Repositorys.implementaties
+{
+ public class AfspraakRepository : IAfspraakRepository
+ {
+ AlfaPrenticeContext db;
+ public AfspraakRepository(AlfaPrenticeContext db)
+ {
+ this.db = db;
+ }
+
+ ///
+ /// Get afspraken by ID of Gebruiker
+ ///
+ ///
+ /// GetAfspraken
+ public List GetAfspraken(int Gebruiker_ID)
+ {
+ return db.Afspraak.Where(G => G.Gebruiker_ID == Gebruiker_ID).ToList();
+ }
+
+ ///
+ /// Get 1 afspraak by Afspraak_ID and Gebruiker_ID
+ ///
+ ///
+ ///
+ /// GetAfspraak
+ public Afspraak GetAfspraak(int Afspraak_ID, int Gebruiker_ID)
+ {
+ return db.Afspraak.Where(A => A.Afspraak_ID == Afspraak_ID && A.Gebruiker_ID == Gebruiker_ID).FirstOrDefault();
+ }
+
+ ///
+ /// Add a afspraak
+ ///
+ ///
+ /// AddAfspraak
+ public Afspraak AddAfspraak(Afspraak afspraak)
+ {
+ db.Afspraak.Add(afspraak);
+ db.SaveChanges();
+
+ return afspraak;
+ }
+
+ ///
+ /// Upodate afspraak
+ ///
+ ///
+ /// UpdateAfspraak
+ public Afspraak UpdateAfspraak(Afspraak afspraak)
+ {
+ db.Afspraak.Update(afspraak);
+ db.SaveChanges();
+
+ return afspraak;
+ }
+
+ ///
+ /// Delete a afspraak
+ ///
+ ///
+ /// DeleteAfspraak
+ public Afspraak DeleteAfspraak(Afspraak afspraak)
+ {
+ db.Afspraak.Remove(afspraak);
+ db.SaveChanges();
+
+ return afspraak;
+ }
+
+ /*
+ Querys for deelnemers of Afpraak
+ */
+ /*
+ ///
+ /// Get list of afspraak by Afspraak_ID
+ ///
+ ///
+ /// GetDeelnemers
+ public List GetDeelnemers(int Aspraak_ID)
+ {
+ return db.Deelnemer.Where(D => D.Afspraak_ID == Afspraak_ID).ToList();
+ }*/
+
+ ///
+ /// Add deelnemer to afspraak
+ ///
+ ///
+ /// AddDeelnemer
+ public Deelnemer AddDeelnemer(Deelnemer deelnemer)
+ {
+ db.Deelnemer.Add(deelnemer);
+ db.SaveChanges();
+
+ return deelnemer;
+ }
+
+ ///
+ /// Update deelnemer of a afspraak
+ ///
+ ///
+ /// UpdateDeelnemer
+ public Deelnemer UpdateDeelnemer(Deelnemer deelnemer)
+ {
+ db.Deelnemer.Update(deelnemer);
+ db.SaveChanges();
+
+ return deelnemer;
+ }
+
+ ///
+ /// Delete deelnemer from a Afspraak
+ ///
+ ///
+ /// DeleteDeelnemer
+ public Deelnemer Deletedeelnemer(Deelnemer deelnermer)
+ {
+ db.Deelnemer.Remove(deelnermer);
+ db.SaveChanges();
+
+ return deelnermer;
+ }
+
+ }
+}
diff --git a/dotnet/AlfaPrentice/Repositorys/implementaties/AgendaRepository.cs b/dotnet/AlfaPrentice/Repositorys/implementaties/AgendaRepository.cs
new file mode 100644
index 0000000..d693dcf
--- /dev/null
+++ b/dotnet/AlfaPrentice/Repositorys/implementaties/AgendaRepository.cs
@@ -0,0 +1,115 @@
+using AlfaPrentice.Data;
+using AlfaPrentice.Models;
+using AlfaPrentice.Repositorys.Interfaces;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Repositorys.implementaties
+{
+ public class AgendaRepository : IAgendaRepository
+ {
+ AlfaPrenticeContext db;
+ public AgendaRepository(AlfaPrenticeContext db)
+ {
+ this.db = db;
+ }
+
+ ///
+ /// get list of all agendas
+ ///
+ /// ListAgenda
+ public List GetAggendas()
+ {
+ return db.Agenda.ToList();
+ }
+
+ ///
+ /// Get Agenda by Gebruiker_ID
+ ///
+ ///
+ /// Agenda
+ public Agenda GetAgenda(int Gebruiker_ID)
+ {
+ return db.Agenda.Where(A => A.Gebruiker_ID == Gebruiker_ID).FirstOrDefault();
+ }
+
+ ///
+ /// Add agenda for a Gebruiker
+ ///
+ ///
+ /// agenda
+ public Agenda AddAgenda(Agenda agenda)
+ {
+ db.Agenda.Add(agenda);
+ db.SaveChanges();
+
+ return agenda;
+ }
+
+ /*
+ querys for agendablock
+ */
+
+ ///
+ /// Get Agendablock by Gebruiker_ID
+ ///
+ ///
+ /// GetBlokken
+ public List GetBlokken(int Gebruierk_ID)
+ {
+ return db.AgendaBlock.Where(G => G.Gebruiker_ID == Gebruierk_ID).ToList();
+ }
+
+ ///
+ /// Get 1 Agendablock on Gebruiker_ID
+ ///
+ ///
+ /// GetBlok
+ public AgendaBlok GetBlok(int Gebruiker_ID)
+ {
+ return db.AgendaBlock.Where(G => G.Gebruiker_ID == Gebruiker_ID).FirstOrDefault();
+ }
+
+ ///
+ /// Add Agendablock for a gebruiker
+ ///
+ ///
+ /// AddBlok
+ public AgendaBlok AddBlok(AgendaBlok agendablok)
+ {
+ db.AgendaBlock.Add(agendablok);
+ db.SaveChanges();
+
+ return agendablok;
+ }
+
+ ///
+ /// Update agendablok of a gebruiker
+ ///
+ ///
+ /// UpdateBlok
+ public AgendaBlok UpdateBlok(AgendaBlok agendablok)
+ {
+ db.AgendaBlock.Update(agendablok);
+ db.SaveChanges();
+
+ return agendablok;
+ }
+
+ ///
+ /// Delete AgendaBlok of a Gebruiker
+ ///
+ ///
+ ///
+ /// DeleteBlok
+ public AgendaBlok DeleteBlok(int Agendablok_ID, int Gebruiker_ID, AgendaBlok agendablok)
+ {
+ db.AgendaBlock.Remove(agendablok); //.Where(A => A.AgendaBlok_ID == Agendablok_ID && A.Gebruiker_ID == Gebruiker_ID);
+ db.SaveChanges();
+
+ return null;
+ }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Repositorys/implementaties/BedrijfRepository.cs b/dotnet/AlfaPrentice/Repositorys/implementaties/BedrijfRepository.cs
new file mode 100644
index 0000000..aa75627
--- /dev/null
+++ b/dotnet/AlfaPrentice/Repositorys/implementaties/BedrijfRepository.cs
@@ -0,0 +1,50 @@
+using AlfaPrentice.Data;
+using AlfaPrentice.Models;
+using AlfaPrentice.Repositorys.Interfaces;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Repositorys.implementaties
+{
+ public class BedrijfRepository : IBedrijfRepository
+ {
+ AlfaPrenticeContext db;
+ public BedrijfRepository(AlfaPrenticeContext db)
+ {
+ this.db = db;
+ }
+
+ //get list of bedrijfven
+ public List GetBedrijven()
+ {
+ return db.Bedrijf.ToList();
+ }
+
+ //get bedrijf by ID
+ public Bedrijf GetBedrijf(int Bedrijf_ID)
+ {
+ return db.Bedrijf.Where(B => B.Bedrijf_ID == Bedrijf_ID).FirstOrDefault();
+ }
+
+ //add geheel bedrijf
+ public Bedrijf AddBedrijf(Bedrijf bedrijf)
+ {
+ db.Bedrijf.Add(bedrijf);
+ db.SaveChanges();
+
+ return bedrijf;
+ }
+
+ //update a complete bedrijf
+ public Bedrijf UpdateBedrijf(Bedrijf bedrijf)
+ {
+ db.Bedrijf.Update(bedrijf);
+ db.SaveChanges();
+
+ return bedrijf;
+ }
+
+ }
+}
diff --git a/dotnet/AlfaPrentice/Repositorys/implementaties/SollicitatieRepository.cs b/dotnet/AlfaPrentice/Repositorys/implementaties/SollicitatieRepository.cs
new file mode 100644
index 0000000..2712eb8
--- /dev/null
+++ b/dotnet/AlfaPrentice/Repositorys/implementaties/SollicitatieRepository.cs
@@ -0,0 +1,39 @@
+using AlfaPrentice.Data;
+using AlfaPrentice.Models;
+using AlfaPrentice.Repositorys.Interfaces;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice.Repositorys.implementaties
+{
+ public class SollicitatieRepository : ISollicitatieRepository
+ {
+ AlfaPrenticeContext db;
+ public SollicitatieRepository(AlfaPrenticeContext db)
+ {
+ this.db = db;
+ }
+ //get list of sollicitaties
+ public List GetSollicitaties()
+ {
+ return db.Sollicitatie.ToList();
+ }
+
+ //get sollicitatie by Student_ID
+ public Sollicitatie GetSollicitatie(int Student_ID)
+ {
+ return db.Sollicitatie.Where(S => S.Student_ID == Student_ID).FirstOrDefault();
+ }
+
+ //Add complete sollicitatie
+ public Sollicitatie AddSollicitatie(Sollicitatie sollicitatie)
+ {
+ db.Sollicitatie.Add(sollicitatie);
+ db.SaveChanges();
+
+ return sollicitatie;
+ }
+ }
+}
diff --git a/dotnet/AlfaPrentice/Startup.cs b/dotnet/AlfaPrentice/Startup.cs
new file mode 100644
index 0000000..d71493b
--- /dev/null
+++ b/dotnet/AlfaPrentice/Startup.cs
@@ -0,0 +1,71 @@
+using AlfaPrentice.Data;
+using AlfaPrentice.Repositorys.implementaties;
+using AlfaPrentice.Repositorys.Interfaces;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+using Microsoft.OpenApi.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace AlfaPrentice
+{
+ public class Startup
+ {
+ public Startup(IConfiguration configuration)
+ {
+ Configuration = configuration;
+ }
+
+ public IConfiguration Configuration { get; }
+
+
+ // This method gets called by the runtime. Use this method to add services to the container.
+ public void ConfigureServices(IServiceCollection services)
+ {
+
+ services.Configure(Configuration);
+ services.AddDbContext(options => options.UseMySQL(Configuration.GetConnectionString("AlfaPrentice")));
+
+ //depencies for interface and repos
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
+
+ services.AddControllers();
+ services.AddSwaggerGen(c =>
+ {
+ c.SwaggerDoc("v1", new OpenApiInfo { Title = "AlfaPrentice", Version = "v1" });
+ });
+ }
+
+ // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
+ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
+ {
+ if (env.IsDevelopment())
+ {
+ app.UseDeveloperExceptionPage();
+ app.UseSwagger();
+ app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "AlfaPrentice v1"));
+ }
+
+ app.UseHttpsRedirection();
+
+ app.UseRouting();
+
+ app.UseAuthorization();
+
+ app.UseEndpoints(endpoints =>
+ {
+ endpoints.MapControllers();
+ });
+ }
+ }
+}
diff --git a/dotnet/AlfaPrentice/WeatherForecast.cs b/dotnet/AlfaPrentice/WeatherForecast.cs
new file mode 100644
index 0000000..2154d35
--- /dev/null
+++ b/dotnet/AlfaPrentice/WeatherForecast.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace AlfaPrentice
+{
+ public class WeatherForecast
+ {
+ public DateTime Date { get; set; }
+
+ public int TemperatureC { get; set; }
+
+ public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
+
+ public string Summary { get; set; }
+ }
+}
diff --git a/dotnet/AlfaPrentice/appsettings.Development.json b/dotnet/AlfaPrentice/appsettings.Development.json
new file mode 100644
index 0000000..8983e0f
--- /dev/null
+++ b/dotnet/AlfaPrentice/appsettings.Development.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft": "Warning",
+ "Microsoft.Hosting.Lifetime": "Information"
+ }
+ }
+}
diff --git a/dotnet/AlfaPrentice/appsettings.json b/dotnet/AlfaPrentice/appsettings.json
new file mode 100644
index 0000000..442a2d1
--- /dev/null
+++ b/dotnet/AlfaPrentice/appsettings.json
@@ -0,0 +1,17 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft": "Warning",
+ "Microsoft.Hosting.Lifetime": "Information"
+ }
+ },
+ "ConnectionStrings": {
+ "AlfaPrentice": "Server=localhost;User Id=root; Database=AlfaPrentice"
+ },
+
+ "emailsmtp": "mail.incapabel.com",
+ "emailusername": "info@incapabel.com",
+ "emailpassword": "@Alfa2019",
+ "AllowedHosts": "*"
+}