Added ColorAuthentication.cs

This commit is contained in:
quentin 2024-05-20 10:44:18 -05:00
parent 71eea092c7
commit 8c58bb2fa3

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