public ActionResult CalculateProductionPoints(CalculateProductionPointsViewModel vm) { if (ModelState.IsValid) { vm.Result = companyService.GetProductionPoints((ProductTypeEnum)vm.ProducedProductID, vm.HitPoints, vm.Skill, vm.Distance, vm.Quality, vm.ResourceQuality ?? 0, vm.Development, vm.PeopleCount); } return(View(vm)); }
public ActionResult CalculateProductionPoints() { CalculateProductionPointsViewModel vm = new CalculateProductionPointsViewModel(); return(View(vm)); }