public Organisation AddOrganisation(string name, string fullname, string socialMediaLink = null, List <Theme> themes = null, string iconUrl = null, bool isTrending = false, Subplatform subplatform = null, byte[] image = null) { InitNonExistingRepo(); Organisation organisation = new Organisation { Name = name, FullName = fullname, SocialMediaLink = socialMediaLink, IconURL = iconUrl, IsTrending = isTrending, Alerts = new List <Alert>(), Elements = new List <Element>(), SubscribedProfiles = new List <Profile>(), Keywords = new List <Keyword>(), SubPlatforms = new List <Subplatform>(), People = new List <Person>(), Themes = themes ?? new List <Theme>(), Image = image }; if (subplatform != null) { organisation.SubPlatforms.Add(subplatform); subplatform.Items.Add(organisation); } organisation = ItemRepo.CreateOrganisation(organisation); UowManager.Save(); return(organisation); }