Beispiel #1
0
        public async Task <IActionResult> RemovePatient([FromBody] WatchmanIdPatientIdViewModel model)
        {
            try
            {
                await _service.RemovePatientFromWatchmanAsync(model.WatchmanId, model.PatientId);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(BadRequest(ex));
            }
        }
Beispiel #2
0
        public async Task <IActionResult> ExistPendingControlRequest([FromBody] WatchmanIdPatientIdViewModel model)
        {
            var res = await _controlRequestService.ExistPendingRequest(model.WatchmanId, model.PatientId);

            return(Ok(res));
        }
Beispiel #3
0
        public async Task <IActionResult> CreateControlRequest([FromBody] WatchmanIdPatientIdViewModel model)
        {
            await _controlRequestService.CreateControlRequest(model.WatchmanId, model.PatientId);

            return(Ok());
        }
Beispiel #4
0
 public async Task <IActionResult> IsControlPatient([FromBody] WatchmanIdPatientIdViewModel model)
 {
     return(Ok(await _service.IsControlPatient(model.WatchmanId, model.PatientId)));
 }