Esempio n. 1
0
        public async Task <IActionResult> GetUserOnCallWith(int cpUserId)
        {
            try
            {
                var user = await _relationService.GetUserOnCallWithIdAsync(cpUserId);

                return(Ok(user));
            }
            catch (KeyNotFoundException ex)
            {
                return(NotFound(ex.Message));
            }
        }