Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #3
0
 public Controller(UserSys u)
 {
     this.conn = Connection.Connect();
     this.u    = u;
 }