22 lines
567 B
C#
22 lines
567 B
C#
using MudBlazor;
|
|
using Template.Shared.Components.Pages;
|
|
|
|
namespace Template.Shared.Core.Helpers;
|
|
|
|
public class ModalHelpers
|
|
{
|
|
public static Task OpenActivityForm(IDialogService dialog ,string? id = null) =>
|
|
dialog.ShowAsync<ActivityForm>(
|
|
"Activity form",
|
|
new DialogParameters<ActivityForm>
|
|
{
|
|
{ x => x.Id, id}
|
|
},
|
|
new DialogOptions
|
|
{
|
|
FullScreen = true,
|
|
CloseButton = false,
|
|
NoHeader = true
|
|
}
|
|
);
|
|
} |