public string Get(string actor_id, string object_id) { user_realation me = new user_realation(); //me.user_id = id; Hashtable ht = me.follow(actor_id, object_id); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(strJson); }
public string Get(string relation_type, string user_id, string target_id) { user_realation me = new user_realation(); //me.user_id = id; List <Hashtable> ht = me.show_user_relation_list(relation_type, user_id, target_id); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(strJson); }