+ 1
C# Login method code
Please check my last code it doesn't work ;
4 Réponses
+ 5
You had some syntax errors: 
check: 
https://code.sololearn.com/cWILU26MLIE5/#cs
+ 2
You have many syntax errors in your code
Console.WriteLine - - make sure you don't make spelling mistakes and use correct capitalization
In your if/else condition, make sure to put the braces where they need to be. It helps to see the structure if you indent the code more nicely.
            if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password) )
            {
                return "Usernamr or Password can't be empty.";
            }
            else if (username == "amr" && password == "123")
            {
                return " Welcome Amr.";
            }
            else
            {
                return "Sorry try again.";
            }
+ 1
Thank you very much ⛄☔💙
0
I made changes to it, bust there's another error !



