Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Edit Blog

$
0
0

Hi. I am new to MVC Core. 

I have been attempting to get an edit blog working.

The code is at - https://github.com/DotNetDS/CoreMVC_Project.git

In the blog controller I have two edit methods.

I have commented the first one out so I can get to the blog page without an error and the edit does not work anyway.

On the blog page there is a html edit tag which I would like to take the site to an edit page.

Where the blog data can be edited. I have been struggling to find a tutorial to show me this exactly.

The error is (when uncommented).

An unhandled exception occurred while processing the request.

<div class="titleerror">AmbiguousActionException: Multiple actions matched. The following actions matched route data and had all constraints satisfied:

ExploreCalifornia.Controllers.BlogController.Index (ExploreCalifornia)
ExploreCalifornia.Controllers.BlogController.Edit (ExploreCalifornia)</div> <div class="titleerror"></div> <div class="titleerror">I am guessing its to do with routing. I would appreciate any help as I really want to see this working.</div>

Thanks,


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>