public bool IsUserAuthorizedToAccessProduct(User user, int productID) { if (user.UserName == "Admin") { return true; } else { return false; } }
public ProductRepoLogger(IProductRepository target, User user) { _target = target; _user = user; }