public ActionResult ShowCommentFactory(Guid contractFactoryId) { var model = obkRepo.GetCommentsFactory(contractFactoryId); if (model == null) { model = new OBK_ContractFactoryCom(); } if (Request.IsAjaxRequest()) { return(PartialView(model)); } return(View(model)); }