Added NLog, Added UserService, Added database and seed seed
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
25
Birdmap.BLL/Exceptions/EntityNotFoundException.cs
Normal file
25
Birdmap.BLL/Exceptions/EntityNotFoundException.cs
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user