34 lines
799 B
C#
34 lines
799 B
C#
using DnsClient.Protocol;
|
|
using Microsoft.AspNetCore.Components;
|
|
using MP.Data.DatabaseModels;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MP.Stats.Components
|
|
{
|
|
public partial class TaskEdit
|
|
{
|
|
|
|
[Parameter]
|
|
public TaskListModel? CurrRecord { get; set; } = null;
|
|
|
|
[Parameter]
|
|
public EventCallback<bool> EC_update { get; set; }
|
|
|
|
protected async Task doCancel()
|
|
{
|
|
await EC_update.InvokeAsync(false);
|
|
}
|
|
protected async Task doSave()
|
|
{
|
|
bool fatto = false;
|
|
#if false
|
|
await Task.Delay(1);
|
|
if (CurrRecord != null)
|
|
{
|
|
fatto = await MTService.CustomerUpdate(CurrRecord);
|
|
}
|
|
#endif
|
|
await EC_update.InvokeAsync(fatto);
|
|
}
|
|
}
|
|
} |