/*Funcion: actualizar equipos por grupos Param: EquipmentGroupView,AuditDataFromWeb Return: status */ public CUDView UpdateEquipmentGroup(EquipmentGroupView groupEquipment, AuditDataFromWeb audit) { CUDView logic = new CUDView(); AuditDao auditDao = new AuditDao(); DataTable auditDaoResult = auditDao.getEquipmentGroupOldValues(groupEquipment.EquipmentGroupId); String OldValues = "EquipmentGroupId: " + groupEquipment.EquipmentGroupId; foreach (DataRow row in auditDaoResult.Rows) { if (auditDaoResult.Columns.Contains("EquipmentGroupName") && row["EquipmentGroupName"] != DBNull.Value) { OldValues = OldValues + ", EquipmentGroupName: " + row["EquipmentGroupName"].ToString(); } } EquipmentDao Dao = new EquipmentDao(); String state = Dao.updateEquipmentGroup(groupEquipment); logic= CUDVerifyLogic.verifierInsertDeleteUpdate("update", state); if (logic.update == true) { AuditService auditservice = new AuditService(); String Action = "Update EquipmentGroup"; String newValues = "EquipmentGroupId: " + groupEquipment.EquipmentGroupId; newValues = newValues + ", EquipmentGroupName: " + groupEquipment.EquipmentGroupName; auditservice.formUpdate(Action, newValues, OldValues, audit); } return logic; }