コード例 #1
0
        public Expression <Func <Translation, bool> > Execute(GetBranch branch)
        {
            var branchValue = branch.HasBranch ? branch.Value : string.Empty;

            Log.Debug($"Setting branch predicate to value: {branchValue}");

            _predicate = _predicate.And(x => x.Branch == branchValue);
            return(_predicate);
        }
コード例 #2
0
 public override void OnActionExecuting(ActionExecutingContext context)
 {
     _ipAddress = new GetClientIp().Execute(context.HttpContext.Request);
     _Branch    = new GetBranch(Request);
     base.OnActionExecuting(context);
 }