Added NLog, Added UserService, Added database and seed seed

This commit is contained in:
Richárd Kunkli
2020-10-25 16:15:06 +01:00
parent 52667d913d
commit 1c61f5ec63
31 changed files with 728 additions and 150 deletions

View File

@ -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);
}
}

View 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);
}
}