using Integrations.Data;

using Microsoft.AspNetCore.Components;

namespace Integrations.Components.Features.CreateModuleFeatureMnagement;
public partial class CreateModule
{
	[SupplyParameterFromForm]
	private InputModel Input { get; set; } = new();


	public async Task Create()
	{
		var module = new Module
		{
			Name = Input.Name,
			Description = Input.Description,
			Type = Input.Type,
		};
		//this.DataContext.Modules.Add(module);
		//await this.DataContext.SaveChangesAsync();
		//this.Snackbar.Add("Module created successfully", MudBlazor.Severity.Success);
		//this.DialogService.Close();
	}

}
