initial commit
This commit is contained in:
27
Controllers/AbstractController.cs
Normal file
27
Controllers/AbstractController.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using AutoMapper;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.SelfService.Portal.Core.API.Events.Interfaces;
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Controllers
|
||||
{
|
||||
public class AbstractController : Controller
|
||||
{
|
||||
private readonly IEventHandlerInterface _eventHandlerInterface;
|
||||
|
||||
private readonly string _class;
|
||||
private readonly string _method;
|
||||
|
||||
public AbstractController( string Class, string Method)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
ICollection<EventModel> GetEvents()
|
||||
{
|
||||
return _eventHandlerInterface.GetEvents(_class, _method);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user