public ActionResult <PatientViewModel> AssignAppointment(int appointmentId, String IduserStaff) { var response = _Service.AssignAppointment(appointmentId, IduserStaff); if (response.Error == false) { return(Ok(response.Object)); } else { return(BadRequest(response.Message)); } }