private List <GeneralReportGridView> GetGeneralReport(string start_date, string end_date) { GeneralReport GR = new GeneralReport(General.settings.username, General.settings.password, General.settings.host, General.settings.lang, start_date, end_date); string json = GR.execute(); IList <IDictionary <string, object> > list_of_dict = new JavaScriptSerializer().Deserialize <IList <IDictionary <string, object> > >(json); List <GeneralReportGridView> GRGV_List = new List <GeneralReportGridView>(); foreach (IDictionary <string, object> dict in list_of_dict) { GeneralReportGridView GRGV = new GeneralReportGridView( Convert.ToInt32(dict["sms_id"]), dict["sender"].ToString(), Convert.ToDecimal(dict["cost"]), dict["message"].ToString(), DateTime.ParseExact(dict["created"].ToString(), "dd.MM.yyyy - HH:mm", System.Globalization.CultureInfo.InvariantCulture), Convert.ToInt32(dict["count"]), Convert.ToInt32(dict["waiting_count"]), Convert.ToInt32(dict["delivered_count"]), Convert.ToInt32(dict["undelivered_count"]), Convert.ToBoolean(dict["succeeded"]) ); GRGV_List.Add(GRGV); } return(GRGV_List); }