public ActionResult Delete(Guid id) { var metricType = GetMetricTypeById(id); var model = new DeleteConfirmationAjaxModel() { Title = "Удаление типа метрики", Message = "Вы действительно хотите удалить тип метрики " + metricType.SystemName + "?", }; return(View("Dialogs/DeleteConfirmationAjax", model)); }
public ActionResult Delete(Guid id) { var unitTest = GetUnitTestById(id); var model = new DeleteConfirmationAjaxModel() { Title = "Удаление проверки", Message = "Вы действительно хотите удалить проверку " + unitTest.DisplayName + "?", }; return(View("Dialogs/DeleteConfirmationAjax", model)); }
protected ActionResult ViewDialog(DeleteConfirmationAjaxModel model) { return(View("Dialogs/DeleteConfirmationAjax", model)); }