public ActionResult <Post> PostPost(PostDTO post)
        {
            Gebruiker gebruiker = _gebruikerRepository.GetBy(User.Identity.Name);

            Post postToCreate = new Post()
            {
                Beschrijving = post.Beschrijving, Gebruiker = gebruiker, CategorieNaam = post.CategorieNaam
            };

            foreach (var f in post.Fotos)
            {
                postToCreate.AddFoto(new Foto(f.Naam));
            }
            _postRepository.Add(postToCreate);
            _postRepository.SaveChanges();

            return(CreatedAtAction(nameof(GetPost),
                                   new { id = postToCreate.PostId }, postToCreate));
        }