Files
lux/Lux.UI/Components/Compo/OfferDelivery.razor.cs
T

42 lines
928 B
C#

using EgwCoreLib.Lux.Data.DbModel.Sales;
using Microsoft.AspNetCore.Components;
namespace Lux.UI.Components.Compo
{
public partial class OfferDelivery
{
#region Public Properties
[Parameter]
public OfferModel CurrRecord { get; set; } = null!;
[Parameter]
public EventCallback<bool> EC_Cancel { get; set; }
[Parameter]
public EventCallback<OfferModel> EC_Updated { get; set; }
#endregion Public Properties
#region Private Fields
private bool isLoading = false;
#endregion Private Fields
#region Private Methods
private Task DoCancel()
{
return EC_Cancel.InvokeAsync(true);
}
private Task DoSave()
{
// richiesta update con salvataggio record
return EC_Updated.InvokeAsync(CurrRecord);
}
#endregion Private Methods
}
}