Hi,
In below code I need to get CustomerSurname as well. In the dropdown box I must show customer surname as: "CustomerName" + " " + "CustomerSurname".
- // GET: APPROVALs/Create
- public ActionResult Create()
- {
- ViewBag.CUSTID = new SelectList(db.CUSTOMER, "CUSTID", "CustomerName");
- return View();
- }
I also need the "db.CUSTOMER" must only get a customer list where CustomerActive = False...
Any help please,
Kind Regards,

Ravi PatelRank #439 · 5.7K reputationPosted May 26, 2016, 5:53 AM EDT
Niyazi Toros34 reputationPosted May 26, 2016, 5:45 AM EDT
Niyazi Toros34 reputationPosted May 26, 2016, 9:43 PM EDT
Niyazi Toros34 reputationPosted May 26, 2016, 10:04 PM EDT