//[HttpGet] public ActionResult GetCommentsList(int requestId) { var commentList = new List <CommentModel>(); var comments = _userBl.GetAllCommentsByRequestId(requestId); foreach (var comment in comments) { var commentModel = new CommentModel() { Id = comment.Id, CommentText = comment.CommentText, RequestId = comment.RequestId, CreatorId = comment.CreatorId }; commentList.Add(commentModel); } return(View(commentList)); }