42 lines
1008 B
C#
42 lines
1008 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|