public List <OrderReports_Result> GetOrders(DateTime dt, string admin) { using (GBHODBEntities db = new GBHODBEntities()) { return((from x in db.OrderReports(admin, dt) select x).OrderBy(x => x.OrderId) .ToList()); } }
public List <OrderReports_Result> GetOrders(DateTime dt, string admin) { using (GBHODBEntities db = new GBHODBEntities()) { return((from x in db.OrderReports(admin, dt) select x).OrderBy(x => x.OrderId) .ToList()); } }