Exemple #1
0
        public static int Delete_UserSys(String id)
        {
            UserSys u = new UserSys();

            u.Id = new ObjectId(id);
            Controller ctr = new Controller(u);

            return(ctr.Delete_UserSys());
        }
Exemple #2
0
        public static int Insert_UserSys(String username, String password)
        {
            UserSys u = new UserSys();

            u.Username = username;
            u.Password = password;
            Controller ctr = new Controller(u);

            return(ctr.Insert_UserSys());
        }
Exemple #3
0
 public Controller(UserSys u)
 {
     this.conn = Connection.Connect();
     this.u    = u;
 }