Policy oPolicy = new Policy(); oPolicy.GetPolicyByPolicyPK(policyPK); oPolicy.Entity.IssueDate = issueDate; oPolicy.Entity.IssueDate = DateTime.Now; oPolicy.SaveEntity();or just change
// 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); > } > } >>
public void Issue(Guid policyPK, DateTime issueDate) > { > PolicyEntity oPolicyEntity = this.GetPolicyByPolicyPK(policyPK); > oPolicyEntity.IssueDate = issueDate; > oPolicyEntity.IssueDate = DateTime.Now; > oPolicyEntity.SaveEntity(); > > }>