Example #1
0
        public async Task <IActionResult> Diactivate(string userId)
        {
            var result = await _patientService.DeactivatePatient(userId);

            switch (result.OperationStatus)
            {
            case PatientActivatingStatus.Diactivated:
                return(Ok(result));

            case PatientActivatingStatus.NotFound:
                return(NotFound(result));

            default:
                return(BadRequest(result));
            }
        }