public static ArrayList GetPosts(string companyId) { DataSet ds = PostInfoSrv.GetPosts(companyId); if (ds == null) { return(null); } ArrayList list = new ArrayList(); foreach (DataRow row in ds.Tables[0].Rows) { Dictionary <string, string> dict = new Dictionary <string, string>(); dict.Add("postName", row["postName"].ToString()); dict.Add("postId", row["postId"].ToString()); list.Add(dict); } return(list); }
public static DataSet GetPostsDataset(string companyId) { return(PostInfoSrv.GetPosts(companyId));; }