Added ColorAuthentication.cs
This commit is contained in:
parent
71eea092c7
commit
8c58bb2fa3
41
API/Authentication/ColorAuthentication.cs
Normal file
41
API/Authentication/ColorAuthentication.cs
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
using API.Authentication.Interfaces;
|
||||||
|
using API.DTO.Base;
|
||||||
|
using DAL.Models;
|
||||||
|
|
||||||
|
namespace API.Authentication
|
||||||
|
{
|
||||||
|
public class ColorAuthentication : IColorAuthentication
|
||||||
|
{
|
||||||
|
private readonly ILogger<ColorAuthentication> _logger;
|
||||||
|
public ColorAuthentication(ILogger<ColorAuthentication> logger)
|
||||||
|
{
|
||||||
|
_logger = logger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool canGetAll(User user)
|
||||||
|
{
|
||||||
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public bool canGet(Color model, User user)
|
||||||
|
{
|
||||||
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public bool canAdd(ColorDTO item, User user)
|
||||||
|
{
|
||||||
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public bool canUpdate(Color model, User user)
|
||||||
|
{
|
||||||
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public bool canDelete(Color model, User user)
|
||||||
|
{
|
||||||
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user