34 lines
974 B
C#
34 lines
974 B
C#
using Lux.Report.Data.DbModel;
|
|
|
|
namespace Lux.Report.Data.Repository
|
|
{
|
|
public interface IReportRepository
|
|
{
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Inserisce un nuovo record Report nel database.
|
|
/// </summary>
|
|
/// <param name="entity">Record da inserire</param>
|
|
Task<bool> AddAsync(ReportModel entity);
|
|
|
|
/// <summary>
|
|
/// Recupera l'elenco completo dei Report
|
|
/// </summary>
|
|
Task<List<ReportModel>> GetAllAsync();
|
|
|
|
/// <summary>
|
|
/// Recupera un Report specifico per ID.
|
|
/// </summary>
|
|
/// <param name="currID">ID da recuperare</param>
|
|
Task<ReportModel?> GetByIdAsync(int currID);
|
|
|
|
/// <summary>
|
|
/// Aggiorna un record Report esistente nel database.
|
|
/// </summary>
|
|
/// <param name="entity">Record aggiornato</param>
|
|
Task<bool> UpdateAsync(ReportModel entity);
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |