@admin this is the stuff mentioned in your api documentation..
string Client_code = "“; //YOUR CLIENT CODE
string Password = ""; //YOUR PASSWORD
string api_key = "";
string JWTToken = "“; // optional
string RefreshToken = ""; // optional
SmartApi connect = new SmartApi(api_key, JWTToken, RefreshToken);
OutputBaseClass obj = new OutputBaseClass();
//Login by client code and password
obj = connect.GenerateSession(Client_code, Password);
AngelToken agr = obj.TokenResponse;
I have replaced the client code, password and api_key.. what else you mean to say is missing here ? I have seen ppl has lots of experience and knowledge in api's and dot net and if they are still making mistake then its a gap in the documentation..