public ActionResult ShowDocComment(string documentId, string categoryId) { var repository = new UploadRepository(); var model = repository.GetComments(documentId, categoryId); if (model == null) { model = new FileLinksCategoryCom(); } if (Request.IsAjaxRequest()) { return(PartialView(model)); } return(View(model)); }