예제 #1
0
        public BBBaseApiController()
        {
            try
            {
                _log = new Log4NetLoggingService();

                _repository = new BBRepository(
                    new CodeGenHero.BingoBuzz.Repository.Entities.BB.BBDataContext());

                RunCustomLogicAfterCtor();
            }
            catch (Exception ex)
            {
                if (_log != null)
                {
                    _log.Error(message: $"Failure to initialize repository in controller constructor.",
                               logMessageType: LogMessageType.Instance.Exception_WebApi, ex: ex);
                }
                else
                {
                    throw;
                }
            }
        }
 public MeetingSchedulesBBController(ILoggingService log, IBBRepository repository)
     : base(log, repository)
 {
 }
 public BingoInstanceStatusTypesBBController(ILoggingService log, IBBRepository repository)
     : base(log, repository)
 {
 }
예제 #4
0
 public BBBaseApiController(ILoggingService log, IBBRepository repository)
 {
     _repository = repository;
     _log        = log;
     RunCustomLogicAfterCtor();
 }
예제 #5
0
 public CompaniesBBController(ILoggingService log, IBBRepository repository)
     : base(log, repository)
 {
 }
 public RecurrenceRulesBBController(ILoggingService log, IBBRepository repository)
     : base(log, repository)
 {
 }
 public NotificationMethodTypesBBController(ILoggingService log, IBBRepository repository)
     : base(log, repository)
 {
 }
 public BBAPIStatusController(ILoggingService log, IBBRepository repository)
     : base(log, repository)
 {
 }
예제 #9
0
 public BingoContentsBBController(ILoggingService log, IBBRepository repository)
     : base(log, repository)
 {
 }
예제 #10
0
 public FrequencyTypesBBController(ILoggingService log, IBBRepository repository)
     : base(log, repository)
 {
 }