Table of Contents

Class VisitorController

Namespace
Oqtane.Controllers
Assembly
Oqtane.Server.dll
[Route("api/[controller]")]
public class VisitorController : Controller
Inheritance
VisitorController

Constructors

VisitorController(IVisitorRepository, ILogManager, ITenantManager)

public VisitorController(IVisitorRepository visitors, ILogManager logger, ITenantManager tenantManager)

Parameters

visitors IVisitorRepository
logger ILogManager
tenantManager ITenantManager

Methods

Get(int)

[HttpGet("{id}")]
public Visitor Get(int id)

Parameters

id int

Returns

Visitor

Get(string, string)

[HttpGet]
[Authorize(Roles = "Administrators")]
public IEnumerable<Visitor> Get(string siteid, string fromdate)

Parameters

siteid string
fromdate string

Returns

IEnumerable<Visitor>