示例#1
0
        public IActionResult Get(string id)
        {
            var beg = _dataRepository.GetDto(id);

            if (beg == null)  //String.IsNullOrEmpty(texto)
            {
                return(NotFound("Adresse not found."));
            }
            return(Ok(beg));
        }
示例#2
0
        public IActionResult Get(string id)
        {
            var zusage = _dataRepository.GetDto(id);

            if (zusage == null)  //String.IsNullOrEmpty(texto)
            {
                return(NotFound("Zusage not found."));
            }
            return(Ok(zusage));
        }