Пример #1
0
        public List <GetAllOrders_Result> GetAllOrders(string username)
        {
            List <GetAllOrders_Result> result = new List <GetAllOrders_Result>();

            using (GBHODBEntities db = new GBHODBEntities())
            {
                var order = db.GetAllOrders(username);
                if (order != null)
                {
                    result.AddRange(order);
                }
            }

            return(result);
        }