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 PatelPosted May 26, 2016, 9:53 AM
Niyazi TorosPosted May 27, 2016, 2:04 AM
Niyazi TorosPosted May 27, 2016, 1:43 AM
Niyazi TorosPosted May 26, 2016, 9:45 AM