public async Task EditClient() { ClientModel client = new ClientModel { Id = SelectedClient.Id, FirstName = SelectedClient.FirstName, LastName = SelectedClient.LastName, Email = SelectedClient.Email, Phone = SelectedClient.Phone, Address = SelectedClient.Address }; await _clientEndpoint.UpdateClient(client); SelectedClient = null; }