public IActionResult UpdateEDMTE(int id) { var evm = new EDMTEViewModel(); evm.EDMTE = _dal.GetEDMTE(id); evm.Equipments = _dal.GetEquipmentsListItems(); evm.EquipmentDefaultMeasurementTypes = _dal.GetDefaultMeasurementTypesListItems(); return(View(evm)); }
public IActionResult AddEDMTE() { var evm = new EDMTEViewModel(); evm.EDMTE = new EquipmentDefaultMeasurementType_Equipment(); evm.Equipments = _dal.GetEquipmentsListItems(); evm.EquipmentDefaultMeasurementTypes = _dal.GetDefaultMeasurementTypesListItems(); return(View(evm)); }