protected void SaveOrg(object sender, EventArgs e) { try { Label1.Text = string.Empty; var saveOrganization = new BusinessLayer.OrginizationBusinessObjects(); string desc = tar_OrgDescription.Value; bool organizationSave = saveOrganization.AddOrganization(tbx_OrgName.Text, desc, tbx_WebAddress.Text, ddl_OrgBgColor.Text, ddl_OrgFgColor.Text, tbx_country.Text, tbx_city.Text, Convert.ToInt32(tbx_postalCode.Text), tbx_streetAdress.Text, tbx_phone.Text, tbx_email.Text); Label1.Text = "Successfully inserted"; } catch (Exception ex) { Label1.Text = "Something went wrong, Exception message: " + ex.Message; } }
public HyperLink projectCreation(Guid usersProjectId, bool prority) { var ProjObj = new BusinessLayer.ProjectBussinessObjects(); _userProjects = ProjObj.GetProjectById(usersProjectId); //for getting project images projectsImagePackageId = (Guid)_userProjects.imagePackageId; var images = new BusinessLayer.ImagePackageBusinessObjects(); userImagePackage = images.GetImagesOfProjectsById(projectsImagePackageId); imageList = new List <string> { userImagePackage.image1, userImagePackage.image2, userImagePackage.image3, userImagePackage.image4, userImagePackage.image5, userImagePackage.image6, userImagePackage.image7, userImagePackage.image8, userImagePackage.image9, userImagePackage.image10 }; //getting organization logo organizationOfProjectID = (Guid)_userProjects.organizationId; var currentOrganization = new BusinessLayer.OrginizationBusinessObjects(); _projectOrganization = currentOrganization.GetOrganizationOfProjectsById(organizationOfProjectID); //main panel HyperLink ProjContent = new HyperLink(); ProjContent.Attributes.Add("onclick", "event.preventDefault();"); //oncontextmenu="return false;" //?id=" + Category.categoryId ProjContent.NavigateUrl = "~/uBuoyProjectDetails.aspx?progId=" + usersProjectId; //getting main panel content for project with priority projectMainPanel(prority, ProjContent); //getting image content in main panel projectImagesPanel(ProjContent); //getting badge and brand panel projectBrandAndBadgePanel(ProjContent); return(ProjContent); }