예제 #1
0
        public ActionResult GetComments(string type, int id)
        {
            CommentsView model = new CommentsView();

            if (type == "Hotel")
            {
                model.Comments = repository.GetCommentsHotel(id);
            }
            else
            {
                model.Comments = repository.GetCommentsResort(id);
            }


            return(PartialView(model));
        }