public void Put(int id, [FromBody]Project Project)
 {
     using (var db = new DatabaseContext())
     {
         db.Entry(db.Projects.Find(id)).CurrentValues.SetValues(Project);
         db.SaveChanges();
     }
 }
 // PUT api/values/5
 public void Put(int id, [FromBody]User user)
 {
     using (var db = new DatabaseContext())
     {
         db.Entry(db.Users.Find(id)).CurrentValues.SetValues(user);
         db.SaveChanges();
     }
 }
 public void Put(int id, [FromBody]Task task)
 {
     using (var db = new DatabaseContext())
     {
         db.Entry(db.Tasks.Find(id)).CurrentValues.SetValues(task);
         db.SaveChanges();
     }
 }