Exemple #1
0
        public IActionResult Calculate(RequestDto request)
        {
            if (ModelState.IsValid)
            {
                // Need to use automapper and shall not do auto mapping in controller
                var _request = new RequestBo {
                    Age = request.Age, AssuredSum = request.AssuredSum
                };

                var assuredDetail = _ruleSet.Process(_request);
                return(View(assuredDetail));
            }

            return(View("Index"));
        }