Updated to latest mooncore version. Cleaned up some crud controllers and replaced DataTable with the new DataGrid component
This commit is contained in:
@@ -17,21 +17,14 @@ public class ThemeService
|
||||
ApiClient = apiClient;
|
||||
}
|
||||
|
||||
public async Task<PagedData<ThemeResponse>> Get(int page, int pageSize)
|
||||
{
|
||||
return await ApiClient.GetJson<PagedData<ThemeResponse>>(
|
||||
$"api/admin/system/customisation/themes?page={page}&pageSize={pageSize}"
|
||||
);
|
||||
}
|
||||
|
||||
public async Task<ThemeResponse> Get(int id)
|
||||
public async Task<ThemeResponse> GetAsync(int id)
|
||||
{
|
||||
return await ApiClient.GetJson<ThemeResponse>(
|
||||
$"api/admin/system/customisation/themes/{id}"
|
||||
);
|
||||
}
|
||||
|
||||
public async Task<ThemeResponse> Create(CreateThemeRequest request)
|
||||
public async Task<ThemeResponse> CreateAsync(CreateThemeRequest request)
|
||||
{
|
||||
return await ApiClient.PostJson<ThemeResponse>(
|
||||
"api/admin/system/customisation/themes",
|
||||
@@ -39,7 +32,7 @@ public class ThemeService
|
||||
);
|
||||
}
|
||||
|
||||
public async Task<ThemeResponse> Update(int id, UpdateThemeRequest request)
|
||||
public async Task<ThemeResponse> UpdateAsync(int id, UpdateThemeRequest request)
|
||||
{
|
||||
return await ApiClient.PatchJson<ThemeResponse>(
|
||||
$"api/admin/system/customisation/themes/{id}",
|
||||
@@ -47,7 +40,7 @@ public class ThemeService
|
||||
);
|
||||
}
|
||||
|
||||
public async Task Delete(int id)
|
||||
public async Task DeleteAsync(int id)
|
||||
{
|
||||
await ApiClient.Delete(
|
||||
$"api/admin/system/customisation/themes/{id}"
|
||||
|
||||
Reference in New Issue
Block a user