A
A
Alexey2014-11-12 09:18:50
JavaScript
Alexey, 2014-11-12 09:18:50

Does anyone have an example of a "comment" block for an asp.net mvc site?

Does anyone have an example of a "comment" block for a site on asp.net mvc?

I just don't even know where to start... In addition, all the comments are in the database, I need to get them and use angular to output 5 to the site...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2014-11-13
@asdz

I think you need to create a comment model for the page and add it to the existing model. In the view, already render the comments.
The second option, if on Angular, then create a WEB API controller with an action that returns comments in the form of json for a particular page (for example, pass the page id to the action). From the page (i.e. already from the client) make an ajax request to the controller's WEB API action and request comments on the page (or on the post), and after receiving json, render to the page using angular.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question