Exemple #1
0
 public String getBuy()
 {
     try
     {
         if (this.CheckAuth() != "1") return "";
         int id_user = Convert.ToInt32(Session["user_id"]);
         Models.User usr = new Models.User();
         return usr.getBuyItem(id_user);
     }
     catch
     {
         return "Произошла ошибка!";
     }
 }