public override ValidatorReturn UpdateValidation(BankAccount entity)
        {
            ValidatorReturn validator = new ValidatorReturn();
            StringBuilder   sb        = new StringBuilder();

            if (entity.Id <= 0)
            {
                validator.Ok = false;
                sb.AppendLine("Invalid id.");
            }

            if (entity.Agency <= 0)
            {
                validator.Ok = false;
                sb.AppendLine("Invalid Agency Number.");
            }

            if (entity.AccountNumber <= 0)
            {
                validator.Ok = false;
                sb.AppendLine("Invalid Account Number.");
            }

            if (entity.PersonId <= 0)
            {
                validator.Ok = false;
                sb.AppendLine("Invalid Person.");
            }

            validator.Message = sb.ToString();

            return(validator);
        }
        public override ValidatorReturn InsertValidation(BankAccountLaunches entity)
        {
            ValidatorReturn validator = new ValidatorReturn();
            StringBuilder   sb        = new StringBuilder();

            if (entity.Id > 0)
            {
                validator.Ok = false;
                sb.AppendLine("Invalid id.");
            }

            if (entity.SourceBankAccountId <= 0)
            {
                validator.Ok = false;
                sb.AppendLine("Invalid Bank Account.");
            }

            if (entity.LaunchValue <= 0)
            {
                validator.Ok = false;
                sb.AppendLine("Invalid finacial value.");
            }

            if (entity.Date >= DateTime.Now)
            {
                validator.Ok = false;
                sb.AppendLine("Invalid Date.");
            }

            validator.Message = sb.ToString();

            return(validator);
        }