refactor : code smells
continuous-integration/drone/push Build is passing Details

Multiplayer_Php
Jade VAN BRABANDT 1 year ago
parent d21cd47e8c
commit 90d72219ff

@ -72,7 +72,7 @@ public partial class Administrators
return;
}
string apiUri = API.API_URL +"delete/administrator/" + id + "/" + API.TOKEN;;
string apiUri = API.API_URL +"delete/administrator/" + id + "/" + API.TOKEN;
using (var httpClient = new HttpClient())
{

@ -51,7 +51,7 @@ namespace Blazor.Pages.Admins
var formContent = new FormUrlEncodedContent(formData);
string apiUri = API.API_URL+"update/administrator/" + administratorModel.Id + "/" + API.TOKEN;;
string apiUri = API.API_URL+"update/administrator/" + administratorModel.Id + "/" + API.TOKEN;
using (var httpClient = new HttpClient())
{

@ -53,7 +53,7 @@ public partial class Chapters
return;
}
string apiUri = API.API_URL+"delete/chapter/" + id + "/" + API.TOKEN;;
string apiUri = API.API_URL+"delete/chapter/" + id + "/" + API.TOKEN;
using (var httpClient = new HttpClient())
{

@ -48,7 +48,7 @@ public partial class EditChapter
var formContent = new FormUrlEncodedContent(formData);
string apiUri = API.API_URL+"update/chapter/" + chapterModel.Id + "/" + API.TOKEN;;
string apiUri = API.API_URL+"update/chapter/" + chapterModel.Id + "/" + API.TOKEN;
using (var httpClient = new HttpClient())
{

@ -48,7 +48,7 @@ namespace Blazor.Pages.Players
var formContent = new FormUrlEncodedContent(formData);
string apiUri = API.API_URL+"update/player/" + playerModel.Id + "/" + API.TOKEN;;
string apiUri = API.API_URL+"update/player/" + playerModel.Id + "/" + API.TOKEN;
using (var httpClient = new HttpClient())
{

@ -48,7 +48,7 @@ public partial class Players
return;
}
string apiUri = API.API_URL+"delete/player/" + id + "/" + API.TOKEN;;
string apiUri = API.API_URL+"delete/player/" + id + "/" + API.TOKEN;
using (var httpClient = new HttpClient())
{

@ -35,7 +35,7 @@ namespace Blazor.Pages.Questions
var formContent = new FormUrlEncodedContent(formData);
string apiUri = API.API_URL+"/update/questions/" + questionModel.Id + "/" + API.TOKEN;;
string apiUri = API.API_URL+"/update/questions/" + questionModel.Id + "/" + API.TOKEN;
using (var httpClient = new HttpClient())
{

@ -53,7 +53,7 @@ public partial class Questions
return;
}
string apiUri = API.API_URL+"delete/question/" + id + "/" + API.TOKEN;;
string apiUri = API.API_URL+"delete/question/" + id + "/" + API.TOKEN;
using (var httpClient = new HttpClient())
{
@ -155,7 +155,7 @@ public partial class Questions
formData.Add(new KeyValuePair<string, string>("answerContent4", field[5]));
formData.Add(new KeyValuePair<string, string>("idanswergood", field[6]));
string apiUri = API.API_URL+"chapters/name/"+field[1] + "/" + API.TOKEN;;
string apiUri = API.API_URL+"chapters/name/"+field[1] + "/" + API.TOKEN;
var response = await Http.GetAsync(apiUri);

Loading…
Cancel
Save