/*<ControllerActionImplementation:DeleteSeclected:1/>*/ public ActionResult ExecuteDeleteSeclected() { ActionResult _result = null; foreach (var selectedOrder in SelectedItemInfo <DSS5_SupplyChainFinancialsOptimisation.BO.Order> .GetSelectedItems(Get_OrderListNoDT_DatasourceQueryable(null, false), @model.OrderListNoDTSelectedItems) ?? Enumerable.Empty <DSS5_SupplyChainFinancialsOptimisation.BO.Order>()) { new DSS5_SupplyChainFinancialsOptimisation.DAL.Repository().DeleteOrder(selectedOrder); } ClientCommand(ClientCommands.DATALIST_REFRESH, "OrderListNoDT"); ClientCommand(ClientCommands.SHOW_MESSAGE, "Deleted Selected Orders successfully!"); return(_result); }
/*<ControllerActionImplementation:DeleteSeclected:1/>*/ public ActionResult ExecuteDeleteSeclected() { ActionResult _result = null; foreach (var selectedAgreement in SelectedItemInfo <DSS5_SupplyChainFinancialsOptimisation.BO.Agreement> .GetSelectedItems(Get_AgreementListNoDT_DatasourceQueryable(null, false), @model.AgreementListNoDTSelectedItems) ?? Enumerable.Empty <DSS5_SupplyChainFinancialsOptimisation.BO.Agreement>()) { if (selectedAgreement?.CurrentAgreementStatus == "Interested") { new DSS5_SupplyChainFinancialsOptimisation.DAL.Repository().DeleteAgreement(selectedAgreement); } } ClientCommand(ClientCommands.DATALIST_REFRESH, "AgreementListNoDT"); ClientCommand(ClientCommands.SHOW_MESSAGE, "Deleted Agreements that are not ongoing successfully!"); return(_result); }