Exemple #1
0
        public async Task <bool> RegistrarCreditoAsync(Credito credito)
        {
            await Task.Delay(2 *DelayInMs);

            Creditos.Add(credito);
            return(true);
        }
Exemple #2
0
        public async Task <bool> EvaluarCreditoAsync(Credito credito)
        {
            await Task.Delay(DelayInMs);

            switch (credito.Cliente.DNI.ToCharArray()[0])
            {
            case '1':
            case '2':
            case '3':
            case '4':
            case '5':
                return(false);

                break;

            case '6':
            case '7':
            case '8':
            case '9':
            case '0':
                return(true);

                break;
            }
            return(false);
        }