-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change method for adding information about user * Fix code after review * temporary ignore some tests Co-authored-by: Sergii Novytskyi <[email protected]>
- Loading branch information
1 parent
451e34d
commit 2152c34
Showing
4 changed files
with
54 additions
and
51 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
OutOfSchool/OutOfSchool.DataAccess/Repository/IParentRepository.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,15 +1,17 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using OutOfSchool.Services.Models; | ||
|
||
namespace OutOfSchool.Services.Repository | ||
{ | ||
public interface IParentRepository : IEntityRepository<Parent> | ||
{ | ||
/// <summary> | ||
/// Find user information by parent Id. | ||
/// Get Perents by theirs Ids. | ||
/// </summary> | ||
/// <param name="parentIds">Parent Ids.</param> | ||
/// <returns>Tuple which contains part of user information (parentId, firstName and lastName.</returns> | ||
public IEnumerable<(long parentId, string firstName, string lastName)> GetUsersByParents(IEnumerable<long> parentIds); | ||
/// <returns>List of Parents.</returns> | ||
public Task<IReadOnlyList<Parent>> GetByIdsAsync(IEnumerable<long> parentIds); | ||
} | ||
} |
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