From 8c58bb2fa39df93d702cc488ec536609c296a070 Mon Sep 17 00:00:00 2001 From: quentin Date: Mon, 20 May 2024 10:44:18 -0500 Subject: [PATCH] Added ColorAuthentication.cs --- API/Authentication/ColorAuthentication.cs | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 API/Authentication/ColorAuthentication.cs diff --git a/API/Authentication/ColorAuthentication.cs b/API/Authentication/ColorAuthentication.cs new file mode 100644 index 0000000..01f361b --- /dev/null +++ b/API/Authentication/ColorAuthentication.cs @@ -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 _logger; + public ColorAuthentication(ILogger 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; + } + } +}