Ejemplo n.º 1
0
        async Task SaveData(TodoItem item)
        {
            var itemResponse = await ApiManager.AddToDoItemsAsync(item);

            if (!itemResponse.IsSuccessStatusCode)
            {
                await UserDialogs.Instance.AlertAsync(string.Format("reason: {0}", itemResponse.ReasonPhrase), "Error", "Ok");

                return;
            }

            await UserDialogs.Instance.AlertAsync("Saved.", "Success", "OK");
        }