Permalink
Browse files

Edited Orev/Helpers/RavenHelpers.cs via GitHub

  • Loading branch information...
1 parent 8febfa2 commit 461dc2f5b4654512d223ee597dbda9c973a32073 @ayende committed Sep 21, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 Orev/Helpers/RavenHelpers.cs
View
2 Orev/Helpers/RavenHelpers.cs
@@ -10,6 +10,8 @@ public static class RavenHelpers
{
public static int ToIntId(this string id)
{
+ // I assume you did that to avoid MVC routing issues, there are better ways
+ // http://weblogs.asp.net/shijuvarghese/archive/2010/06/04/how-to-work-ravendb-id-with-asp-net-mvc-routes.aspx
return int.Parse(id.Substring(id.LastIndexOf('/') + 1));
}
}

0 comments on commit 461dc2f

Please sign in to comment.