Пример #1
0
        public IActionResult GetByIdProvince(int Id)
        {
            try
            {
                var result = _city.GetByIdProvince(Id);

                if (result == null)
                {
                    return(NotFound());
                }

                return(Ok(result));
            }
            catch (Exception e)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, e));
            }
        }