Example #1
0
 protected string GetCreatedLocation <T>(IBedrockIdEntity <T> entity, string routeName = null)
     where T : struct, IComparable
 {
     EnsureDefaultRouteName(ref routeName);
     return(Url.Link(routeName, new { id = entity.Id }));
 }
Example #2
0
 protected string GetCreatedLocation(IBedrockIdEntity <int> entity, string routeName = null)
 {
     EnsureDefaultRouteName(ref routeName);
     return(GetCreatedLocation <int>(entity, routeName));
 }