public async Task <IHttpActionResult> AddAppointmentuser(CandidateSubmissionAppointmentUserViewModel data) { try { string userId = User.Identity.GetUserId(); return(Ok((await _service.AddAppointmentuser(data.UserID, data.AppointmentID, userId)))); } catch (Exception) { throw; } }