private void RemoveByStatus(int statusId) { var data = new TaskXDeliverableArtifactDataModel(); data.DeliverableArtifactStatusId = statusId; TaskXDeliverableArtifactDataManager.Delete(data, SessionVariables.RequestProfile); }
protected void btnDelete_Click(object sender, EventArgs e) { try { string[] deleteIndexList = DeleteIds.Split(','); foreach (string index in deleteIndexList) { var data = new TaskXDeliverableArtifactDataModel(); data.TaskXDeliverableArtifactId = int.Parse(index); TaskXDeliverableArtifactDataManager.Delete(data, SessionVariables.RequestProfile); } DeleteAndRedirect(); } catch (Exception ex) { Response.Write(ex.Message); } }