Exemplo n.º 1
0
        public virtual ActionResult VerifyContent(int resultsMatrixId)
        {
            var response = _verifyContentService
                           .GetVerifyContents(new GetVerifyContentRequest {
                ResultsMatrixId = resultsMatrixId
            }, null);

            if (!response.IsValid)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest, response.ErrorMessage));
            }

            var viewModel = _viewModelMapperHelper.ConvertVerifyContentViewModel(response.VerifyContentModel);

            return(PartialView(viewModel));
        }