Skip to content

Instantly share code, notes, and snippets.

@kieransenior
Created June 28, 2011 07:42
Show Gist options
  • Select an option

  • Save kieransenior/1050678 to your computer and use it in GitHub Desktop.

Select an option

Save kieransenior/1050678 to your computer and use it in GitHub Desktop.

Revisions

  1. Kieran Senior created this gist Jun 28, 2011.
    12 changes: 12 additions & 0 deletions model-management-helper-method.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    public class Helpers
    {
    public static string PopulationGroup(int population)
    {
    if(population < 100)
    return "Small";
    else if(population >= 100 && population < 500)
    return "Medium";
    else
    return "Large";
    }
    }