Skip to content

Instantly share code, notes, and snippets.

@dshookowsky
Last active August 29, 2015 13:58
Show Gist options
  • Save dshookowsky/10387440 to your computer and use it in GitHub Desktop.
Save dshookowsky/10387440 to your computer and use it in GitHub Desktop.
Models/Customization.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Branding.Models
{
public class Customization
{
public string titleColor;
public string titleTextColor;
public Customization(string hostHeader)
{
//TODO replace with actual call to database.
switch (hostHeader)
{
case "client1.mysite.com":
titleColor = "#c00";
titleTextColor = "#000";
break;
case "client2.mysite.com":
titleColor = "#000";
titleTextColor = "#fff";
break;
default:
titleColor = "#003192";
titleTextColor = "#fff";
break;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment