public Position ModifyPosition(Position newPosition)
 {
     using (var db = new DatabaseContext())
     {
         db.Entry(newPosition).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return (Position)db.Positions.Find(newPosition.PositionId);
     }
 }
 public Position CreatePosition(Position position)
 {
     using(var db = new DatabaseContext())
     {
         Position CreatedPosition = (Position)db.Positions.Add((EntityFramework.Position)position);
         db.SaveChanges();
         return CreatedPosition;
     }
 }