public JsonResult DeleteAjax(DeleteDialogAjaxModel model)
        {
            var client = GetDispatcherClient();

            client.DeleteUnitTest(CurrentUser.AccountId, model.Id).Check();
            return(GetSuccessJsonResponse());
        }
示例#2
0
        public ActionResult DeleteAjax(DeleteDialogAjaxModel model)
        {
            var client = GetDispatcherClient();

            client.DeleteMetric(CurrentUser.AccountId, new DeleteMetricRequestData()
            {
                MetricId = model.Id,
                UpdateComponentStatus = true
            }).Check();
            return(GetSuccessJsonResponse());
        }
示例#3
0
        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));
        }