public ViewResult Index() { var model = new HomePageViewModel(); //_commentData.GetAllComments(); model.Comments = _commentData.GetAllComments(); return(View(model)); }
public IActionResult GetAllComments() { return(Ok(_commentData.GetAllComments())); }