-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #403 from DFE-Digital/feature/establishment-by-urn-v1
Feature/establishment by urn v1
- Loading branch information
Showing
5 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
Dfe.Academies.Domain/Establishment/IEstablishmentRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
using Dfe.Academies.Academisation.Domain.SeedWork; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Dfe.Academies.Domain.Establishment | ||
{ | ||
public interface IEstablishmentRepository : IGenericRepository<Establishment> | ||
{ | ||
Task<Establishment?> GetEstablishmentByUkprn(string ukprn, CancellationToken cancellationToken); | ||
Task<Establishment?> GetEstablishmentByUrn(string urn, CancellationToken cancellationToken); | ||
Task<List<Establishment>> Search(string name, string ukPrn, | ||
string urn, CancellationToken cancellationToken); | ||
Task<IEnumerable<int>> GetURNsByRegion(ICollection<string> regions, CancellationToken cancellationToken); | ||
Task<List<Establishment>> GetByUrns(int[] Urns); | ||
} | ||
} |