Add project
This commit is contained in:
11
Api/Services/Interfaces/ISeasonService.cs
Normal file
11
Api/Services/Interfaces/ISeasonService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Common.Dtos.Common;
|
||||
using Common.Dtos.Season;
|
||||
|
||||
namespace Api.Services.Interfaces;
|
||||
|
||||
public interface ISeasonService
|
||||
{
|
||||
Task<CreateSeasonResponse> CreateAsync(CreateSeasonRequest request);
|
||||
Task<PagedList<SeasonDto>> GetAllPagedAsync(GetSeasonsRequest request);
|
||||
Task<SeasonDto[]> GetAllAsync();
|
||||
}
|
||||
11
Api/Services/Interfaces/IServiceHelper.cs
Normal file
11
Api/Services/Interfaces/IServiceHelper.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Common.Dtos.Common;
|
||||
|
||||
namespace Api.Services.Interfaces
|
||||
{
|
||||
public interface IServiceHelper<T>
|
||||
{
|
||||
Task<ValidationProblems> Validate(T request);
|
||||
Task RemoveCache();
|
||||
void AddKeyToCache(string key);
|
||||
}
|
||||
}
|
||||
12
Api/Services/Interfaces/ISpecializationService.cs
Normal file
12
Api/Services/Interfaces/ISpecializationService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Common.Dtos.Common;
|
||||
using Common.Dtos.Season;
|
||||
using Common.Dtos.Specialization;
|
||||
|
||||
namespace Api.Services.Interfaces;
|
||||
|
||||
public interface ISpecializationService
|
||||
{
|
||||
Task<CreateSpecializationResponse> CreateAsync(CreateSpecializationRequest request);
|
||||
Task<PagedList<SpecializationDto>> GetAllPagedAsync(GetSpecializationsRequest request);
|
||||
Task<SpecializationDto[]> GetAllAsync();
|
||||
}
|
||||
12
Api/Services/Interfaces/ISubjectService.cs
Normal file
12
Api/Services/Interfaces/ISubjectService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Common.Dtos.Common;
|
||||
using Common.Dtos.Specialization;
|
||||
using Common.Dtos.Subject;
|
||||
|
||||
namespace Api.Services.Interfaces;
|
||||
|
||||
public interface ISubjectService
|
||||
{
|
||||
Task<CreateSubjectResponse> CreateAsync(CreateSubjectRequest request);
|
||||
Task<PagedList<SubjectDto>> GetAllPagedAsync(GetSubjectsRequest request);
|
||||
Task<SubjectDto[]> GetAllAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user