public async Task <IActionResult> RemovePatient([FromBody] WatchmanIdPatientIdViewModel model) { try { await _service.RemovePatientFromWatchmanAsync(model.WatchmanId, model.PatientId); return(Ok()); } catch (Exception ex) { return(BadRequest(ex)); } }
public async Task <IActionResult> ExistPendingControlRequest([FromBody] WatchmanIdPatientIdViewModel model) { var res = await _controlRequestService.ExistPendingRequest(model.WatchmanId, model.PatientId); return(Ok(res)); }
public async Task <IActionResult> CreateControlRequest([FromBody] WatchmanIdPatientIdViewModel model) { await _controlRequestService.CreateControlRequest(model.WatchmanId, model.PatientId); return(Ok()); }
public async Task <IActionResult> IsControlPatient([FromBody] WatchmanIdPatientIdViewModel model) { return(Ok(await _service.IsControlPatient(model.WatchmanId, model.PatientId))); }