public ActionResult AcceptAppointment(string appointmentId) { try { service.AcceptAppointmentInvition(Int64.Parse(appointmentId)); return(Content("success")); } catch (Exception e) { return(Content(e.Message)); } }