42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using API.Authentication.Interfaces;
|
|
using DAL.Models;
|
|
|
|
namespace API.Authentication
|
|
{
|
|
public class YesAuthentication : IYesAuthentication
|
|
{
|
|
private readonly ILogger<YesAuthentication> _logger;
|
|
public YesAuthentication(ILogger<YesAuthentication> logger)
|
|
{
|
|
_logger = logger;
|
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
|
}
|
|
|
|
public bool canGetAll(User user)
|
|
{
|
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
|
return true;
|
|
}
|
|
public bool canGet(object model, User user)
|
|
{
|
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
|
return true;
|
|
}
|
|
public bool canAdd(object item, User user)
|
|
{
|
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
|
return true;
|
|
}
|
|
public bool canUpdate(object model, User user)
|
|
{
|
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
|
return true;
|
|
}
|
|
public bool canDelete(object model, User user)
|
|
{
|
|
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
|
|
return true;
|
|
}
|
|
}
|
|
}
|