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); }
public override void OnActionExecuting(ActionExecutingContext context) { _ipAddress = new GetClientIp().Execute(context.HttpContext.Request); _Branch = new GetBranch(Request); base.OnActionExecuting(context); }