public JsonResult DeleteAjax(DeleteDialogAjaxModel model) { var client = GetDispatcherClient(); client.DeleteUnitTest(CurrentUser.AccountId, model.Id).Check(); return(GetSuccessJsonResponse()); }
public ActionResult DeleteAjax(DeleteDialogAjaxModel model) { var client = GetDispatcherClient(); client.DeleteMetric(CurrentUser.AccountId, new DeleteMetricRequestData() { MetricId = model.Id, UpdateComponentStatus = true }).Check(); return(GetSuccessJsonResponse()); }
public ActionResult DeleteAjax(Guid id) { var metric = GetMetricById(id); var model = new DeleteDialogAjaxModel() { Id = metric.Id, Message = "Вы действительно хотите удалить метрику " + metric.MetricType.DisplayName + "?" }; return(PartialView("Dialogs/DeleteDialogAjaxNew", model)); }
public ActionResult DeleteAjax(Guid id) { var unittest = GetUnitTestById(id); var model = new DeleteDialogAjaxModel() { Id = unittest.Id, Message = "Вы действительно хотите удалить проверку " + unittest.DisplayName + "?" }; return(PartialView("Dialogs/DeleteDialogAjaxNew", model)); }