Beispiel #1
0
        public string InsertUser(int id, string city)
        {
            //ConcertNotifierEntities1 concertDB = new ConcertNotifierEntities1();
            string answer = null;

            try
            {
                var user = new tblUsers();
                user.user_id   = id;
                user.user_city = city;
                concertDB.tblUsers.Add(user);
                concertDB.SaveChanges();
                answer = string.Format("ѕоздравл¤ем с регистрацией, ваш город {0}", city);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw (new Exception());
            }


            return(answer);
        }