23 lines
1.1 KiB
C#
23 lines
1.1 KiB
C#
using SteUp.Shared.Core.Entities;
|
|
|
|
namespace SteUp.Shared.Core.Interface.LocalDb;
|
|
|
|
public interface IIspezioniService
|
|
{
|
|
// ISPEZIONI
|
|
Task<Ispezione?> GetIspezioneAsync(string codMdep, DateOnly data, string rilevatore);
|
|
Task<List<Ispezione>> GetAllIspezioniWithSchedeAsync();
|
|
Task AddIspezioneAsync(Ispezione ispezione);
|
|
Task<Ispezione> GetOrCreateIspezioneAsync(string codMdep, DateOnly data, string rilevatore);
|
|
Task<bool> UpdateIspezioneAsync(Ispezione ispezione);
|
|
Task<bool> DeleteIspezioneAsync(string codMdep, DateOnly data, string rilevatore);
|
|
|
|
// SCHEDE
|
|
Task AddSchedaAsync(string codMdep, DateOnly data, string rilevatore, Scheda scheda);
|
|
Task<List<Scheda>> GetAllSchedeOfIspezioneAsync(string codMdep, DateOnly data, string rilevatore);
|
|
Task<Scheda?> GetSchedaAsync(int schedaId);
|
|
Task<Scheda?> GetSchedaWithIspezioneAsync(int schedaId);
|
|
Task<bool> UpdateSchedaAsync(Scheda scheda);
|
|
Task<bool> DeleteSchedaAsync(int schedaId);
|
|
Task<int> DeleteAllSchedeOfIspezioneAsync(string codMdep, DateOnly data, string rilevatore);
|
|
} |