public IActionResult GetAllContacts() => new OkObjectResult(XamListDatabase.GetAllContactModels());
public IActionResult GetContact(string id) { var contactModel = XamListDatabase.GetContactModel(id); return(new OkObjectResult(contactModel)); }
public async Task <IActionResult> GetAllContacts() { var contactList = await XamListDatabase.GetAllContactModels().ConfigureAwait(false); return(new OkObjectResult(contactList)); }