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(); }
public ActionResult AddNotitie(ProductenPerBestelling ppb) { Repo.AddNotitie(ppb); return(Ok()); }
public ActionResult PutBestelling(ProductenPerBestelling ppb) { Repo.VerwijderProductenPerBestelling(ppb); return(Ok()); }
public void AddNotitie(ProductenPerBestelling ppb) { Context.Entry(ppb).State = EntityState.Modified; Context.SaveChanges(); }