예제 #1
0
 public ActionResult NumberConversion(NumberViewModel model)
 {
     NumberViewModel viewModel = new NumberViewModel();
     viewModel.Decimal = model.Decimal;
     viewModel.Octol = model.Decimal.ToOct();
     viewModel.HexaDecimal = model.Decimal.ToHex();
     viewModel.Binary = model.Decimal.ConvetToBase(2);
     ModelState.Clear();
     return View(viewModel);
 }
예제 #2
0
 public ActionResult NumberConversion()
 {
     NumberViewModel model = new NumberViewModel();
     return View(model);
 }