public void Post([FromBody]User user)
 {
     using (var db = new DatabaseContext())
     {
         db.Users.Add(user);
         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 Delete(int id)
 {
     using (var db = new DatabaseContext())
     {
         db.Users.Remove(db.Users.Find(id));
         db.SaveChanges();
     }
 }
 public void Put(int id, [FromBody]Project Project)
 {
     using (var db = new DatabaseContext())
     {
         db.Entry(db.Projects.Find(id)).CurrentValues.SetValues(Project);
         db.SaveChanges();
     }
 }
 public void Post([FromBody]Project Project)
 {
     using (var db = new DatabaseContext())
     {
         db.Projects.Add(Project);
         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();
     }
 }
 public void Post([FromBody]Task task)
 {
     using (var db = new DatabaseContext())
     {
         db.Tasks.Add(task);
         db.SaveChanges();
     }
 }