Exemplo n.º 1
0
        public static int Save(string name, string address, string tel, string email, int state)
        {
            User u = new User();

            u.Name       = name;
            u.Address    = address;
            u.Tel        = tel;
            u.Email      = email;
            u.User_state = UserStateDAL.SelectById(state);
            return(UserDAL.Insert(u));
        }
Exemplo n.º 2
0
 public static List <UserState> GetAllUserState()
 {
     return(UserStateDAL.SelectByOther(""));
 }