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); }
public ActionResult NumberConversion() { NumberViewModel model = new NumberViewModel(); return View(model); }