CoreWiki icon indicating copy to clipboard operation
CoreWiki copied to clipboard

Comment POST action goes to page where the partial is embedded

Open ashleybroughton opened this issue 6 years ago • 0 comments

We're currently handling POST requests from the CreateComments component in the page where the component is embedded. e.x. https://github.com/csharpfritz/CoreWiki/blob/dev/CoreWiki/Pages/Details.cshtml.cs#L87-L108

Shouldn't we be handling the post of the comment creation in the Comment component? Or if not there, somewhere other than the embedded page?

Just trying to stick to the single responsibility principle.

ashleybroughton avatar Jul 29 '18 10:07 ashleybroughton