Im using northwind database . U may see the attached files .My view displays all orders from the database without an order . I want to display orders based on contactname (customer) and alphabetically . For example contact name AVARIA and under it to display all orders of this costumer and so on .
Because this is showing me all the orders coming from the database without any order .
public ActionResult Index() { var orders = db.Orders.Include(o => o.Customer).Include(o => o.Employee).Include(o => o.Shipper); return View(orders.ToList()); }
I want to display like this :