protected async Task MinusRating()
        {
            Mem.Rating -= 1;
            Mem         = await MemesService.UpdateMem(int.Parse(Id), Mem);

            StateHasChanged();
        }
Exemple #2
0
        protected async Task HandleValidSubmit()
        {
            var result = await MemesService.AddNewMem(mem);

            if (result != null)
            {
                NavigationManager.NavigateTo("/");
            }
        }
 protected async override Task OnInitializedAsync()
 {
     Mem = await MemesService.GetMemById(int.Parse(Id));
 }
 protected async override Task OnInitializedAsync()
 {
     Memes = (await MemesService.GetMemes()).ToList();
 }