Added NLog, Added UserService, Added database and seed seed
This commit is contained in:
@ -6,5 +6,6 @@ namespace Birdmap.BLL.Interfaces
|
||||
public interface IAuthService
|
||||
{
|
||||
Task<User> AuthenticateUserAsync(string username, string password);
|
||||
Task<User> RegisterUserAsync(string username, string password);
|
||||
}
|
||||
}
|
||||
|
15
Birdmap.BLL/Interfaces/IUserService.cs
Normal file
15
Birdmap.BLL/Interfaces/IUserService.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using Birdmap.DAL.Entities;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Birdmap.BLL.Interfaces
|
||||
{
|
||||
public interface IUserService
|
||||
{
|
||||
Task<User> GetUserAsync(int userId);
|
||||
Task<User> GetUserAsync(string username);
|
||||
Task<User> CreateUserAsync(User user);
|
||||
Task UpdateUserAsync(User user);
|
||||
Task DeleteUserAsync(int userId);
|
||||
Task DeleteUserAsync(string username);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user