public abstract int InsertCollegeBranchInfo(CollegeBranchProperty objCollegeBranchProperty, int createdBy, out string errmsg, out int collegeBranchId);
public abstract int UpdateCollegeBranchInfo(CollegeBranchProperty objCollegeBranchProperty, int modifiedBy, out string errmsg, out int collegeBranchId);
protected void BtnSubmitCollegeBasicInfoClick(object sender, EventArgs e) { try { var fileName = ""; var imageName = Common.NoImageSubstitute; if (FileUpload3.HasFile) { fileName = this.FileUpload3.FileName; FileUpload3.SaveAs(Server.MapPath(new Common().GetFilepath("UniversityImage") + fileName)); } var objCollegeBranchProperty = new CollegeBranchProperty { InstituteTypeId = !string.IsNullOrEmpty(Convert.ToString(ddlInstituteType.SelectedValue)) ? Convert.ToInt16(ddlInstituteType.SelectedValue) : 0, CollegeGroupId = !string.IsNullOrEmpty(Convert.ToString(ddlCollegeGroup.SelectedValue)) ? Convert.ToInt16(ddlCollegeGroup.SelectedValue) : 0, CollegeBranchName = txtCollegeBranch.Text != "" ? txtCollegeBranch.Text : "N/A", CollegePopulaorName = txtCollegePopularName.Text != "" ? txtCollegePopularName.Text : "N/A", CollegeManagementTypeId = Convert.ToInt16(ddlManagement.SelectedValue), CollegeBranchEst = txtCollegeEst.Text != "" ? txtCollegeEst.Text : "N/A", CollegeBranchDesc = txtCollegeDesc.Text != "" ? txtCollegeDesc.Text : "N/A", CollegeBranchAddrs = txtAddress.Text != "" ? txtAddress.Text : "N/A", CollegeBranchMobileNo = txtCollegeMobile.Text != "" ? txtCollegeMobile.Text : "N/A", CollegeBranchPinCode = txtPinCode.Text != "" ? txtPinCode.Text : "N/A", CoillegeBranchEmailId = txtEmailId.Text != "" ? txtEmailId.Text : "N/A", CollegeBranchFax = txtCollegeFax.Text != "" ? txtCollegeFax.Text : "N/A", CollegeBranchWebsite = txtCollegeWebsite.Text != "" ? txtCollegeWebsite.Text : "N/A", CollegeBranchCountryId = Convert.ToInt16(hdnCountryInsert.Value), CollegeBranchStateId = Convert.ToInt16(hdnStateInsert.Value), CollegeBranchCityId = Convert.ToInt16(hdnCityInsert.Value), CollegeBranchStatus = chkCollegeStatus.Checked, CollegeBranchLogo = fileName }; var errMsg = ""; var collegeBranchId = 0; var result = CollegeProvider.Instance.InsertCollegeBranchInfo(objCollegeBranchProperty, new SecurePage().LoggedInUserId, out errMsg, out collegeBranchId); if (result > 0) { InsertCourse(collegeBranchId); lblResult.Visible = true; lblResult.Text = errMsg; lblResult.CssClass = "success"; } else { lblResult.Visible = true; lblResult.Text = errMsg; lblResult.CssClass = "info"; } } catch (Exception ex) { var err = ex.Message; if (ex.InnerException != null) { err = err + " :: Inner Exception :- " + ex.ToString(); } const string addInfo = "Error while executing BtnSubmitCollegeBasicInfoClick in UpdateCollegeDetails.axpx :: -> "; var objPub = new ClsExceptionPublisher(); objPub.Publish(err, addInfo); } }