internal static string CreatedLinkId(this IHttpActionResult source) { return(source .As <CreatedAtRouteNegotiatedContentResult <string> >() .RouteValues["id"] as string); }
internal static T ContentAs <T>(this IHttpActionResult result) { return(result.As <OkNegotiatedContentResult <T> >().Content); }