public List <GetMyOrders_Result> GetMyOrders(int memberId) { List <GetMyOrders_Result> result = new List <GetMyOrders_Result>(); using (GBHODBEntities db = new GBHODBEntities()) { var order = db.GetMyOrders(memberId); if (order != null) { result.AddRange(order); } } return(result); }