public void Init()
 {
     _coreDataRepository = new CoreDataRepository();
     _loggingRepository = new LoggingRepository();
     AutoMapperConfig.RegisterMappings();
     batchId = Guid.NewGuid();
 }
 protected override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     _coreDataRepository = new CoreDataRepository();
     _loggingRepository = new LoggingRepository();
     base.OnActionExecuting(filterContext);
 }