29 lines
826 B
C#
29 lines
826 B
C#
using MP.Core.DTO;
|
|
|
|
namespace MP.IOC.Services
|
|
{
|
|
public interface IWeightProvider
|
|
{
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Ritorna l'intero elenco dei weight attivi nel formato WeightDTO
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<List<WeightDTO>> GetAllWeightsAsync();
|
|
|
|
/// <summary>
|
|
/// Ritorna la coppia (oldWeight, newWeight) per scegliere dove instradare il metodo tra i 2 sistemi API.
|
|
/// </summary>
|
|
(int oldWeight, int newWeight) GetWeightsFor(string method);
|
|
|
|
/// <summary>
|
|
/// Aggiorna/Aggiuinge il valore del weight richiesto
|
|
/// </summary>
|
|
/// <param name=""></param>
|
|
/// <returns></returns>
|
|
bool UpsertWeight(WeightDTO updRecord);
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |