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

@@ -1,12 +1,26 @@
using System;
using System.Runtime.Serialization;
namespace Birdmap.BLL.Exceptions
{
[Serializable]
public class AuthenticationException : Exception
{
public AuthenticationException()
: base("Username or password is incorrect.")
{
}
public AuthenticationException(string message) : this()
{
}
public AuthenticationException(string message, Exception innerException) : this()
{
}
protected AuthenticationException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Runtime.Serialization;
namespace Birdmap.BLL.Exceptions
{
[Serializable]
public class EntityNotFoundException : Exception
{
public EntityNotFoundException()
{
}
public EntityNotFoundException(string message) : base(message)
{
}
public EntityNotFoundException(string message, Exception innerException) : base(message, innerException)
{
}
protected EntityNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}