public ActionResult AppointmentReject(string appointmentId, string rejectReason) { Guid id = Guid.Parse(appointmentId); AppointmentModel appointment = new AppointmentModel(); appointment.AppointmentId = id; appointment.RejectReasons = rejectReason; PractitionerProcess process = new PractitionerProcess(); int result = process.AppointmentReject(appointment); //if result = 1 then success, if 0 means fail return(Json(result, JsonRequestBehavior.AllowGet)); }