public ActionResult PostViewAppointment(DoctorAppModel doctorAppModel) { using (ProjectEntities1 db = new ProjectEntities1()) { db.UpdateAppStatus(doctorAppModel.AppointmentId, doctorAppModel.AppointmentStatus); } return(Json("Inserted")); }