public void DeregisterImage(ApDeregisterImageRequest request) { Log.Debug(this, "DeregisterImage()"); try { Authenticate(request); IaasClient.DeregisterImage(request.ImageId); } catch (Exception e) { Log.Error(this, e); throw e; } }
// // GET: /applicationgrid/deregisterimage/{imageId} public ActionResult DeregisterImage(string imageId) { try { ApDeregisterImageRequest request = new ApDeregisterImageRequest(Credentials); request.ImageId = imageId; EndPoints.ApDashboardService.DeregisterImage(request); return RedirectToAction("Images"); } catch (Exception e) { return ShowError(e); } }