public ActionResult RectangularSection(RectangularSectionViewModel viewModel) { var resultViewModel = this.performCalculations <RectangularSectionViewModel>(viewModel); ViewBag.HasResult = true; return(View(resultViewModel)); }
public ActionResult RectangularSection() { ViewBag.ShowResults = false; ViewBag.InputErrors = false; var viewModel = new RectangularSectionViewModel { Height = "10", Width = "4" }; ViewBag.HasResult = false; return(View(viewModel)); }
public DeleteCommand(RectangularSectionViewModel viewModel) { _ViewModel = viewModel; }
public RectangularSectionView() { InitializeComponent(); DataContext = new RectangularSectionViewModel(); }
public ClearListItemsCommand(RectangularSectionViewModel viewModel) { _ViewModel = viewModel; }
public CalculateAndAddCommand(RectangularSectionViewModel viewModel) { _ViewModel = viewModel; }