mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 20:40:55 +00:00
Сделал работу web с маршрутом для изменения статуса картриджа
This commit is contained in:
1 parent
1e5e431cb1
commit
6a63bafce8
2 files changed
+7
-1
No files matched your search
Binary file not shown.
@@ -44,7 +44,13 @@
|
||||
}
|
||||
async Task ClickToChangeCartrdigeAsync()
|
||||
{
|
||||
|
||||
int StatusId = SelectedCauseValue switch
|
||||
{
|
||||
1 => 5,
|
||||
2 => 6,
|
||||
_ => 5
|
||||
};
|
||||
await http.PatchAsJsonAsync(ApiRoutes.Cartridge.ChangeCartridgeStatus(CartridgeId), StatusId);
|
||||
|
||||
DialogService.Close(true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user