// Skapa en Annonstyp public string CreateAdType(AdType adType) { var currentNames = _marketData.GetAdTypeNames(); if (currentNames.Contains(adType.Name)) { return("Denna Annonstyp finns redan"); } return(_marketData.CreateAdType(adType)); }
// Skapa en Annonstyp public string CreateAdType(AdType adType) { var currentNames = _marketData.GetAdTypeNames(); if (currentNames.Contains(adType.Name)) { return("Denna Annonstyp finns redan"); } return(_marketData.CreateAdType(adType)); }