46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
namespace EgwCoreLib.Lux.Data.Services.Items
|
|
{
|
|
public interface ISellingItemService
|
|
{
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Eliminazione record
|
|
/// </summary>
|
|
/// <param name="rec2del"></param>
|
|
/// <returns></returns>
|
|
Task<bool> DeleteAsync(SellingItemModel model);
|
|
|
|
/// <summary>
|
|
/// Recupera items filtrati per ambiente ed tipo sorgente
|
|
/// </summary>
|
|
/// <param name="envir">Ambiente di esecuzione</param>
|
|
/// <param name="sourceType">Tipo sorgente item</param>
|
|
/// <returns></returns>
|
|
Task<List<SellingItemModel>> GetFiltAsync(Constants.EXECENVIRONMENTS envir, ItemSourceType sourceType);
|
|
|
|
/// <summary>
|
|
/// Recupera items per ambiente di esecuzione
|
|
/// </summary>
|
|
/// <param name="envir">Ambiente di esecuzione</param>
|
|
/// <returns></returns>
|
|
Task<List<SellingItemModel>> GetByEnvirAsync(Constants.EXECENVIRONMENTS envir);
|
|
|
|
/// <summary>
|
|
/// Aggiorna dati file per item vendibile
|
|
/// </summary>
|
|
/// <param name="updRec">Record con nuovi dati file</param>
|
|
/// <returns></returns>
|
|
Task<bool> UpdateFileDataAsync(SellingItemModel upsRec);
|
|
|
|
/// <summary>
|
|
/// Upsert record SellingItem (aggiorna o inserisce)
|
|
/// </summary>
|
|
/// <param name="upsRec"></param>
|
|
/// <returns></returns>
|
|
Task<bool> UpsertAsync(SellingItemModel upsRec);
|
|
|
|
#endregion Public Methods
|
|
}
|
|
}
|