//public WorkshopDb GetLastWorkshopLocation(int user_id) //{ // AccidentQuery accidentQuery = new AccidentQuery(); // System.Data.DataTable dataTable = conn_db.ReadTable(accidentQuery.GetLastWorkshopLocation(user_id)); // WorkshopDb WorkshopLocation = new WorkshopDb(); // if (dataTable.Rows.Count == 0) // throw new EmptyViewException("بيانات الورشة غير موجودة", "workshop data are not exist"); // WorkshopLocation = new WorkshopDb(); // WorkshopLocation.LocationX = Convert.ToDouble(dataTable.Rows[0]["LOCATIONX"]); // WorkshopLocation.LocationY = Convert.ToDouble(dataTable.Rows[0]["LOCATIONY"]); // return WorkshopLocation; //} public List <string> GetOrderAllMedia(int order_id) { OrderQuery accidentQuery = new OrderQuery(language); System.Data.DataTable dataTable = conn_db.ReadTable(accidentQuery.GetOrderAllMedia(order_id)); List <string> images = new List <string>(); foreach (System.Data.DataRow row in dataTable.Rows) { images.Add(row["PIC_URL"].ToString()); } return(images); }