Пример #1
0
        //редактирование профиля
        public String doEditProfile(String icq,String twitter,String skype)
        {
            try
            {
                if (this.CheckAuth() != "1") return "";
                int id_user = Convert.ToInt32(Session["user_id"]);
                if (icq == null) return "";
                if (twitter == null) return "";
                if (skype == null) return "";
                Models.User usr = new Models.User();

                return usr.doEditProfile(id_user, icq, twitter, skype);
            }
            catch
            {

                return "Произошла ошибка!";
            }
        }