private Brand CreateBrand(Enums.Brands brandName) { switch (brandName) { case Enums.Brands.Default: return(new Brand("Default", url.AnswerDigital)); default: throw new ArgumentOutOfRangeException(nameof(brandName), brandName, null); } }
public Brand GetBrand(Enums.Brands brandName) { return(CreateBrand(brandName)); }
public StartUpInfoAttribute(Enums.Brands brandName) { Url = new BrandService().GetBrand(brandName).Url; }