protected void DeleteById(string id) { DeleteConfirmation.Execute(new DeleteConfirmationMessage(async() => { var option = await ProjectService.Delete(new DeleteByIdCommand(id)); option.MatchSome(async x => { ToastService.ShowSuccess("Deleted Successfully"); //Feedback.Process(x); Items.Remove(Items.FirstOrDefault(item => item.Id == id)); }); option.MatchNone(x => { Feedback.Process(x); }); StateHasChanged(); })); }