コード例 #1
0
ファイル: TournoisController.cs プロジェクト: Aedjis/TFE
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            using (var httpClient = new HttpClient())
            {
                RetourAPI retourApi = await CallAPI.DeleteTournoi(id);

                if (retourApi.Succes)
                {
                    return(RedirectToAction(nameof(Index)));
                }

                return(RedirectToAction(nameof(Delete), id));
            }
        }