public int PutOfficeHour(Office_Hours officeHours)
        {
            int result;

            try
            {
                using (var context = new DBEntities())
                {
                    return(result = context.Update_Office_Hours(officeHours.Office_hours_id, officeHours.Start_hour, officeHours.End_hour, officeHours.Day, officeHours.Professor_course_id));
                }
            }
            catch (SqlException ex)
            {
                Console.WriteLine(ex);
                throw;
            }
        }
 public JsonResult PutCourse(Office_Hours officeHour)
 {
     return(Json(officeHoursData.PutOfficeHour(officeHour), JsonRequestBehavior.AllowGet));
 }