Example #1
0
        protected override bool CanRunMainMethod()
        {
            if (!AppArgs.CanMarkChequeAsCleared(false))
            {
                return(CantDo($"[{AppArgs.Credentials.Roles}] NOT authorized"));
            }

            if (!TryGetPickedItem(out ChequeVoucherDTO dto))
            {
                return(CantDo("No selected item"));
            }

            return(true);
        }