Ejemplo n.º 1
0
        public ActionResult AlienWeightResult(AlienWeightEnterModel model)
        {
            AlienWeightViewModel resultModel = new AlienWeightViewModel();

            resultModel.EarthWeight = model.EarthWeight;
            resultModel.Planet      = model.Planet;
            resultModel.AlienWeight = Planets.ConvertWeight(model.Planet, model.EarthWeight);

            return(View("AlienWeightResult", resultModel));
        }