Beispiel #1
0
        public async Task <IActionResult> GetUserByFiscalNr([FromRoute] int fiscalNr)
        {
            var result = await _userQuery.GetUserByFiscalNr(fiscalNr);

            if (result == null)
            {
                return(BadRequest(new ResponseApi(false, "User not found", null)));
            }

            return(new OkObjectResult(new ResponseApi(true, "User retrieved successul.", result)));
        }