public HttpResponseMessage Post(StudentMentor newStudentMentor)
 {
     if (_repo.SaveStudentMentor(newStudentMentor))
     {
         return(Request.CreateResponse(HttpStatusCode.OK, newStudentMentor));
     }
     return(Request.CreateResponse(HttpStatusCode.BadRequest));
 }
 public bool SaveStudentMentor(StudentMentor studentMentor)
 {
     try
     {
         System.Diagnostics.Debug.WriteLine("REPO: SaveStudentMentor()");
         _ctx.Entry(studentMentor).State = System.Data.Entity.EntityState.Modified;
         return(_ctx.SaveChanges() > 0);
     }
     catch (Exception ex)
     {
         System.Diagnostics.Debug.WriteLine(ex.Message);
         return(false);
     }
 }