28 lines
690 B
C#
28 lines
690 B
C#
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);
|
|
}
|
|
|
|
}
|
|
}
|