48 lines
899 B
C#
48 lines
899 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Fizetesek
|
|
{
|
|
internal class Kártyásfizetés : FizetesMod, IAzonosit
|
|
{
|
|
public bool Azonosit()
|
|
{
|
|
Console.WriteLine("jelszót kérek a kártyás fizetéshez");
|
|
string beutottjelszo = Console.ReadLine();
|
|
|
|
if (beutottjelszo == "kartya")
|
|
{
|
|
return true;
|
|
|
|
}
|
|
else
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
public override string Fizetes(int Osszeg)
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Azonosit())
|
|
{
|
|
return ($"{Osszeg} összeg fizetve Banki utalásból");
|
|
}
|
|
else
|
|
{
|
|
return ("nem sikerült a bejelentkezés a Kártyába");
|
|
}
|
|
}
|
|
}
|
|
}
|