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