Пример #1
0
        public ActionResult ShowComment(string modelId, string idControl)
        {
            var repository = new SafetyAssessmentRepository();
            var model      = repository.GetComments(modelId, idControl);

            if (model == null)
            {
                model = new OBK_AssessmentDeclarationCom();
            }
            model.ObkAssessmentDeclarationFieldHistories = repository.GetFieldHistories(modelId, idControl);
            if (Request.IsAjaxRequest())
            {
                return(PartialView(model));
            }

            return(View(model));
        }