// retrieve session dataset DataSet dsStatus = (DataSet)Session["Policy"]; // loop through grid's rows and delete the selected items foreach (GridViewRow row in this.grdList.Rows) { CheckBox cb = (CheckBox)(row.FindControl("chkSelector")); if (cb != null && cb.Checked) { // delete the row isSelected = true; Guid policyPK = new Guid(this.grdList.DataKeys[row.RowIndex].Value.ToString()); this.oPolicy.Delete(policyPK); } }So I want to do something similar but call the "Issue" method of oPolicy. How should I code the Issue method?
public void Issue(Guid policyPK, DateTime issueDate) { PolicyEntity oPolicyEntity = this.GetPolicyByPolicyPK(policyPK); oPolicyEntity.IssueDate = issueDate; oPolicyEntity.IssueDate = DateTime.Now; oPolicyEntity.SaveEntity(); }but I get an error: