コード例 #1
0
        public ActionResult <ContactView> GetContactByDni([FromQuery] string Dni)
        {
            var try_contacts = _repository.ExistContactedPerson(Dni);

            if (try_contacts == null)
            {
                return(NotFound());
            }
            var contact = _repository.GetContactByDni(Dni);

            return(Ok(contact));
        }