Skip to content

Instantly share code, notes, and snippets.

@mskutta
Created May 11, 2015 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mskutta/27437a95050400da8d94 to your computer and use it in GitHub Desktop.
Save mskutta/27437a95050400da8d94 to your computer and use it in GitHub Desktop.
Social Sort Service.cs
public class Service : IService
{
public int GetPageViews(Item item)
{
return GetPageViews(item.ID);
}
public int GetPageViews(ID id)
{
return GetPageViews(id.Guid);
}
public int GetPageViews(Guid id)
{
return Cache.GetPageViews(id);
}
public int GetSocialInteractions(Item item)
{
return GetSocialInteractions(item.ID);
}
public int GetSocialInteractions(ID id)
{
return GetSocialInteractions(id.Guid);
}
public int GetSocialInteractions(Guid id)
{
return Cache.GetSocialInteractions(id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment