public ActionResult Create() { //ViewBag.ServicEngineerList = SelectionList.ServiceEngineerList().Select(m => new { m.UserId, m.Name }); ViewBag.AccessoriesTypeList = SelectionList.AccessoriesTypeList().Select(m => new { m.AccessoriesTypeId, m.AccessoriesTypeName }); ViewBag.MachineAccessoriesList = SelectionList.MachineAccessoriesList().Select(m => new { m.MachineAccessoriesId, m.AccessoriesName }); ViewBag.MachineTypeList = SelectionList.MachineTypeList().Select(m => new { m.MachineTypeId, m.MachineTypeName }); ViewBag.MachineModelList = SelectionList.MachineModelsList().Select(m => new { m.MachineModelId, m.MachineName }); //ViewBag.PreCommissioningAccessoriesList = SelectionList.PreCommissioningAccessoriesList().Select(m => new { m.PCAccessoriesId, m.AccessoriesSerialNo }); //ViewBag.PreCommissioningMachineList = SelectionList.PreCommissioningMachineList().Select(m => new { m.PCMachined, m.MachineSerialNo }); return(View(new tblPreCommissioning())); }
public ActionResult Edit(int id) { //ViewBag.ServicEngineerList = SelectionList.ServiceEngineerList().Select(m => new { m.UserId, m.Name }); ViewBag.AccessoriesTypeList = SelectionList.AccessoriesTypeList().Select(m => new { m.AccessoriesTypeId, m.AccessoriesTypeName }); ViewBag.MachineAccessoriesList = SelectionList.MachineAccessoriesList().Select(m => new { m.MachineAccessoriesId, m.AccessoriesName }); ViewBag.MachineTypeList = SelectionList.MachineTypeList().Select(m => new { m.MachineTypeId, m.MachineTypeName }); ViewBag.MachineModelList = SelectionList.MachineModelsList().Select(m => new { m.MachineModelId, m.MachineName }); //ViewBag.PreCommissioningAccessoriesList = SelectionList.PreCommissioningAccessoriesList(id).Select(m => new { m.PCAccessoriesId, m.AccessoriesSerialNo }); //ViewBag.PreCommissioningMachineList = SelectionList.PreCommissioningMachineList(id).Select(m => new { m.PCMachined, m.MachineSerialNo }); return(View("Create", _dbRepository.SelectById(id))); }
public ActionResult Index() { ViewBag.AccessoriesTypeList = SelectionList.AccessoriesTypeList().Select(m => new { m.AccessoriesTypeId, m.AccessoriesTypeName }); return(View()); }