skip to Main Content

Can't get any response from ASP.NET Web API

My controller: public class CommentController : ApiController { private readonly ICommentRepository _commentRepository; public CommentController(ICommentRepository commentRepository) { _commentRepository = commentRepository; } public IHttpActionResult GetComments(int Id) { var comments = _commentRepository.GetComments(Id); return Ok(comments); } } WebApiConfig file: public static void Register(HttpConfiguration config)…

VIEW QUESTION
Back To Top
Search