Added new API for getting Member (aka Users but for use in FE). User is just used for login/registering.
This commit is contained in:
parent
a920be092d
commit
13ed323949
14 changed files with 172 additions and 65 deletions
19
API/Interfaces/IUserRepository.cs
Normal file
19
API/Interfaces/IUserRepository.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using API.DTOs;
|
||||
using API.Entities;
|
||||
|
||||
namespace API.Interfaces
|
||||
{
|
||||
public interface IUserRepository
|
||||
{
|
||||
void Update(AppUser user);
|
||||
Task<bool> SaveAllAsync();
|
||||
Task<IEnumerable<AppUser>> GetUsersAsync();
|
||||
Task<AppUser> GetUserByIdAsync(int id);
|
||||
Task<AppUser> GetUserByUsernameAsync(string username);
|
||||
Task<IEnumerable<MemberDto>> GetMembersAsync();
|
||||
Task<MemberDto> GetMemberAsync(string username);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue