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)); }
public static List <UserState> GetAllUserState() { return(UserStateDAL.SelectByOther("")); }