public Instructor Post(Instructor instructor)
 {
     var newId = _instructors.Max(x=> x.Id) + 1;
     instructor.Id = newId;
     _instructors.Add(instructor);
     return instructor;
 }
 public Instructor Put(Instructor instructor)
 {
     var realinstructor = (from i in _instructors
                           where i.Id == instructor.Id
                           select i).FirstOrDefault();
     realinstructor.Name = instructor.Name;
     return instructor;
 }