Exemplo n.º 1
0
        public ActionResult Post(Premium premium)
        {
            List <Check> checkers = this._checkService.GetChecks();
            double       result   = 0;

            foreach (Check check in checkers)
            {
                if (check.checker(premium) == true)
                {
                    result = check.Premium;
                    break;
                }
            }
            if (result == 0)
            {
                result = _checkService.getDefault().Premium;
            }
            return(Ok(new Response(result)));
        }