Beispiel #1
0
        async Task HandleValidSubmit()
        {
            await DormitoryService.RegisterDormitory(_model);

            toastService.ShowSuccess("Dormitory added successfully");

            NavigationManager.NavigateTo("/Admin/Dormitories");
        }
Beispiel #2
0
 protected override async Task OnInitializedAsync()
 {
     DormitoriyItems = await DormitoryService.GetAllDormitoriesAsync();
 }