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