Open emo333 opened 7 years ago
The generated link adds "GUID" dashes:
https://venusblog.azurewebsites.net/Post/03fd92fe-cb17-4dc2-bc66-3b821e0ab898/sample
The fix is adding .ToString("N") to line 49 ViewData["id"] = post.Id.ToString("N"); in Edit.cshtml.cs which removes the dashes:
.ToString("N")
ViewData["id"] = post.Id
;
https://venusblog.azurewebsites.net/Post/03fd92fecb174dc2bc663b821e0ab898/sample
The generated link adds "GUID" dashes:
https://venusblog.azurewebsites.net/Post/03fd92fe-cb17-4dc2-bc66-3b821e0ab898/sample
The fix is adding
.ToString("N")
to line 49ViewData["id"] = post.Id
.ToString("N");
in Edit.cshtml.cs which removes the dashes:https://venusblog.azurewebsites.net/Post/03fd92fecb174dc2bc663b821e0ab898/sample