public ActionResult ConstructionEquipmentView(string SecurityID) { var model = new EquipmentModel(); SelectList brandList = new SelectList(_clsAsset.GetBrand(false), "value", "label"); ViewBag.EquipmentBrand = brandList; SelectList modelList = new SelectList(new List <CommonDropDown>(), "value", "label"); SelectList year = new SelectList(new List <SelectListItem>(), "Value", "Text"); ViewBag.Years = year; SelectList lstType = new SelectList(_clsGlobal.GetListOfValue("SECURITY_ITEM_STATUS", "", "O", "", ""), "Value", "Text"); ViewBag.StatusList = lstType; if (!string.IsNullOrEmpty(SecurityID)) { model = _clsSecurity.GetEquipmentDetails(SecurityID, true); modelList = new SelectList(_clsAsset.GetModelByBrand(model.Brand, false), "value", "label"); } ViewBag.Years = year; ViewBag.Check = "C"; ViewBag.EquipmentModel = modelList; ViewBag.Viewable = true; return(View("Equipmentview", model)); }