upd Authentification
This commit is contained in:
@@ -38,20 +38,6 @@ namespace SvetoforVKBot.Models.Commands.LK.SportsLK
|
||||
user.colorId = 0;
|
||||
db.SaveChanges();
|
||||
|
||||
//SqlCommand getUser = new SqlCommand("SELECT * FROM Users WHERE chatId = @chatId;", Con);
|
||||
//getUser.Parameters.AddWithValue("@chatId", chatId);
|
||||
//SqlDataReader rgetUser = getUser.ExecuteReader();
|
||||
//rgetUser.Read();
|
||||
//string fio = rgetUser["fio"].ToString();
|
||||
//int weight = Convert.ToInt32(rgetUser["weight"]);
|
||||
//int height = Convert.ToInt32(rgetUser["height"]);
|
||||
//int gender = Convert.ToInt32(rgetUser["gender"]);
|
||||
//var birthday = DateTime.Parse(rgetUser["birthday"].ToString());
|
||||
//int kkal = Convert.ToInt32(rgetUser["kkal"]);
|
||||
//rgetUser.Close();
|
||||
|
||||
msg += user.fio + "\n\n";
|
||||
|
||||
age = (DateTime.Today.Year - user.birthday.Year);
|
||||
|
||||
if (user.gender == 1)
|
||||
|
||||
Reference in New Issue
Block a user