Esempio n. 1
0
        int IUP_detail.Add_detail(string name, string realname, string email)
        {
            User_detail ue = new User_detail
            {
                User_name     = name,
                User_realname = realname,
                User_email    = email
            };

            db.User_detail.Add(ue);
            db.SaveChanges();
            return(ue.User_detail_id);
        }
Esempio n. 2
0
        int IUser_detail.Add_detail(string name, string realname, string Email)
        {
            User_detail ud = new User_detail
            {
                User_name     = name,
                User_realname = realname,
                User_email    = Email
            };

            db.User_detail.Add(ud);
            db.SaveChanges();
            return(ud.User_detail_id);
        }