public IHttpActionResult Update(TeachersOutputModel teachersInfo)
        {
            if (!this.ModelState.IsValid)
            {
                return this.BadRequest(this.ModelState);
            }

            var teacher = this.studentData.Teachers.FirstOrDefault(tch => tch.Id == teachersInfo.Id);

            if (teacher == null)
            {
                return this.BadRequest(NoSuchTeacher);
            }

            teacher.Age = teachersInfo.Age;
            teacher.Email = teachersInfo.Email;
            teacher.Github = teachersInfo.Github;
            teacher.Twitter = teachersInfo.Twitter;
            teacher.LastName = teachersInfo.LastName;
            teacher.LinkedIn = teachersInfo.LinkedIn;
            teacher.Facebook = teachersInfo.Facebook;
            teacher.HireDate = teachersInfo.HireDate;
            teacher.FirstName = teachersInfo.FirstName;
            teacher.GooglePlus = teachersInfo.GooglePlus;
            teacher.TotalExpirience = teachersInfo.TotalExpirience;

            this.studentData.SaveChanges();

            return this.Ok(teachersInfo);
        }
        public IHttpActionResult Create(TeachersOutputModel teachersCreateInfo)
        {
            if (!this.ModelState.IsValid)
            {
                return this.BadRequest(this.ModelState);
            }

            var teacher = this.AddNewTeacher(teachersCreateInfo);
            teachersCreateInfo.Id = teacher.Id;
            this.studentData.SaveChanges();

            return this.Ok(teachersCreateInfo);
        }
        private Teacher AddNewTeacher(TeachersOutputModel teachersInfo)
        {
            var student = new Teacher
                              {
                                  Age = teachersInfo.Age,
                                  Email = teachersInfo.Email,
                                  Github = teachersInfo.Github,
                                  Twitter = teachersInfo.Twitter,
                                  LastName = teachersInfo.LastName,
                                  LinkedIn = teachersInfo.LinkedIn,
                                  Facebook = teachersInfo.Facebook,
                                  FirstName = teachersInfo.FirstName,
                                  GooglePlus = teachersInfo.GooglePlus,
                                  HireDate = teachersInfo.HireDate,
                                  TotalExpirience = teachersInfo.TotalExpirience,
                              };

            this.studentData.Teachers.Add(student);
            this.studentData.SaveChanges();
            return student;
        }