LocalGovIMS_localgov-ims/src/BusinessLogic/Services/ImportProcessingRuleOperatorService.cs
using BusinessLogic.Entities;
using BusinessLogic.Interfaces.Persistence;
using BusinessLogic.Interfaces.Security;
using BusinessLogic.Interfaces.Services;
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;

namespace BusinessLogic.Services
{
    public class ImportProcessingRuleOperatorService : BaseService, IImportProcessingRuleOperatorService
    {
        public ImportProcessingRuleOperatorService(ILog logger
            , IUnitOfWork unitOfWork
            , ISecurityContext securityContext)
            : base(logger, unitOfWork, securityContext)
        {
        }

        public List<ImportProcessingRuleOperator> GetAll()
        {
            try
            {
                return UnitOfWork.ImportProcessingRuleOperators.GetAll().ToList();
            }
            catch (Exception e)
            {
                Logger.Error(null, e);
                return null;
            }
        }
    }
}
