public void VerwijderProductenPerBestelling(ProductenPerBestelling ppb)
        {
            ProductenPerBestelling ppbOrigineel = Context.ProductenPerBestellingen.Where(x => x.ProductId == ppb.ProductId).Where(x => x.BestellingId == ppb.BestellingId).Single();

            Context.Entry(ppbOrigineel).State = EntityState.Deleted;

            Context.SaveChanges();
        }
Exemple #2
0
 public ActionResult AddNotitie(ProductenPerBestelling ppb)
 {
     Repo.AddNotitie(ppb);
     return(Ok());
 }
Exemple #3
0
 public ActionResult PutBestelling(ProductenPerBestelling ppb)
 {
     Repo.VerwijderProductenPerBestelling(ppb);
     return(Ok());
 }
 public void AddNotitie(ProductenPerBestelling ppb)
 {
     Context.Entry(ppb).State = EntityState.Modified;
     Context.SaveChanges();
 }