public IHttpActionResult Put(int id, Website website)
 {
     Website existing = this.context.Websites.FirstOrDefault(i => i.Id == id);
     if (existing == null)
     {
         return this.NotFound();
     }
     else
     {
         existing.Put(website);
         this.context.SaveChanges();
         return this.Ok(WebsiteConverter.ToDto(existing));
     }
 }
 public IHttpActionResult Post(Website website)
 {
     website.ValidateNotNullParameter("website");
     this.context.Websites.Add(website);
     this.context.SaveChanges();
     return this.Created(this.Request.RequestUri.AbsolutePath + "/" + website.Id, website);
 }
 public ActionResult Menu(Website website)
 {
     website.ID = 1;
     websiteManager.ChangeWebsiteKleuren(website);
     return RedirectToAction("Index", "Home");
 }
 //UPDATE
 public void UpdateWebsiteKleur(Website website)
 {
     Website oldWebsiteKleuren = db.websiteskleuren.Find(website.ID);
     db.Entry(oldWebsiteKleuren).CurrentValues.SetValues(website);
     db.SaveChanges();
 }
 public void Put(Website input)
 {
     input.ValidateNotNullParameter("website input");
     this.Name = input.Name;
     this.Url = input.Url;
 }