public ActionResult RefreshMachine(int id) { MachinesManagement machineManagment = new MachinesManagement(); CloudWebPortal.Areas.Aneka.Models.Machine machine = db.Machines.Find(id); machineManagment.UpdateMachineStatus(machine.MachineId, machineManagment.getLogin(machine)); return RedirectToAction("ManageMachinesandResourcePools", "Infrastructure"); }
public ActionResult RefreshAllMachineInResourcePool(int id) { MachinesManagement machineManagment = new MachinesManagement(); List<CloudWebPortal.Areas.Aneka.Models.Machine> machineList = db.ResourcePools.Find(id).Machines.ToList(); foreach (var machine in machineList) machineManagment.UpdateMachineStatus(machine.MachineId, machineManagment.getLogin(machine)); return RedirectToAction("ManageMachinesandResourcePools", "Infrastructure"); }