init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Web.Http;
|
||||
using Kreta.Naplo.BusinessLogic.V3.Dummy;
|
||||
using Kreta.Naplo.Domain.V3.Enum;
|
||||
using Kreta.Naplo.WebApi.FilterAttributes;
|
||||
using Kreta.Naplo.WebApi.V3.Common.Logic;
|
||||
using Kreta.Naplo.WebApi.V3.Documentation;
|
||||
using Kreta.Web.Logging.Abstractions;
|
||||
using Swashbuckle.Swagger.Annotations;
|
||||
|
||||
namespace Kreta.Naplo.WebApi.V3.Controllers
|
||||
{
|
||||
[ApiKeyAuthorization]
|
||||
[IdpAuthorize(FelhasznaloSzerepkor.Tanar)]
|
||||
[RoutePrefix(Constants.RoutePrefix + "/Dummy")]
|
||||
public class DummyController : ApiController
|
||||
{
|
||||
private ITraceLogger TraceLogger { get; }
|
||||
|
||||
public DummyController(ITraceLogger traceLogger)
|
||||
{
|
||||
TraceLogger = traceLogger ?? throw new ArgumentNullException(nameof(traceLogger));
|
||||
}
|
||||
|
||||
[HttpGet, Route("TraceLoggerDummy")]
|
||||
[SwaggerResponse(HttpStatusCode.OK, DescriptionLookUp.TraceDummyResponseLeiras, typeof(List<object>))]
|
||||
public List<object> TraceLoggerDummy()
|
||||
{
|
||||
return ((DummyFacade)Activator.CreateInstance(typeof(DummyFacade), FelhasznaloLogic.GetFelhasznalo(), TraceLogger)).TraceLoggerDummy();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue