protected void btnUpdate_Click(object sender, EventArgs e) { DTO.LicenseTypet licensetype = new DTO.LicenseTypet(); licensetype.AGENT_TYPE = ddlAgentTypeUpdate.SelectedValue; licensetype.INSURANCE_TYPE = ddlInsuranUpdate.SelectedValue; licensetype.LICENSE_TYPE_CODE = hdTypeCode.Value; licensetype.LICENSE_TYPE_NAME = txtUpdatename.Text; var res = biz.UpdateLicenseType(licensetype); if (res.ErrorMsg != null) { UCModalError1.ShowMessageError = res.ErrorMsg; UCModalError1.ShowModalError(); } else { txtLicenseName.Text = ""; BindDrop(); ddlInsuran.SelectedValue = ""; ddlAgentype.SelectedValue = ""; UCModalSuccess1.ShowMessageSuccess = Resources.infoSetSubject_002; UCModalSuccess1.ShowModalSuccess(); } ModalPopupUpdate.Hide(); }
protected void btnSave_Click(object sender, EventArgs e) { DTO.LicenseTypet licensetype = new DTO.LicenseTypet(); licensetype.AGENT_TYPE = ddlAgentype.SelectedValue; licensetype.INSURANCE_TYPE = ddlInsuran.SelectedValue; licensetype.LICENSE_TYPE_NAME = txtLicenseName.Text; var res = biz.AddLicenseType(licensetype); if (res.ErrorMsg != null) { UCModalError1.ShowMessageError = res.ErrorMsg; UCModalError1.ShowModalError(); } else { txtLicenseName.Text = ""; BindDrop(); ddlInsuran.SelectedValue = ""; ddlAgentype.SelectedValue = ""; UCModalSuccess1.ShowMessageSuccess = ""; UCModalSuccess1.ShowModalSuccess(); } }
public DTO.ResponseService <string> UpdateLicenseType(DTO.LicenseTypet licensettype) { return(svc.UpdateLicenseType(licensettype)); }