public void ChangeImage(string userToken, string login, string src) { if (!IsCorrectUser(userToken, login)) { return; } var cmd = new SqlCommand("UPDATE Users SET Image=@Img WHERE Name=@Login"); cmd.Parameters.AddWithValue("Img", (object)src ?? "/images/none.png"); cmd.Parameters.AddWithValue("Login", login); UserFull.Simple_Change(cmd); }