Ejemplo n.º 1
0
        public async Task <IActionResult> GetByCode([FromQuery] string nationalityCode)
        {
            var response = await _service.Get(nationalityCode);

            if (response.IsErrorOccured)
            {
                return(BadRequest(response.Message));
            }

            return(Ok(response.Result));
        }