public IActionResult GetAllContacts() => new OkObjectResult(XamListDatabase.GetAllContactModels());
        public IActionResult GetContact(string id)
        {
            var contactModel = XamListDatabase.GetContactModel(id);

            return(new OkObjectResult(contactModel));
        }
示例#3
0
        public async Task <IActionResult> GetAllContacts()
        {
            var contactList = await XamListDatabase.GetAllContactModels().ConfigureAwait(false);

            return(new OkObjectResult(contactList));
        }