Пример #1
0
 public ActionResult KmToMi()
 {
     SingleValue obj = new SingleValue();
     obj.oneValue = Convert.ToDouble(Request.Form["Kilometers"]);
     obj.result = obj.oneValue * 0.621371;
     return View(obj);
 }
Пример #2
0
 public ActionResult MToFt()
 {
     SingleValue obj = new SingleValue();
     obj.oneValue = Convert.ToDouble(Request.Form["Meters"]);
     obj.result = obj.oneValue * 3.28084;
     return View(obj);
 }
Пример #3
0
 public ActionResult FtToM()
 {
     SingleValue obj = new SingleValue();
     obj.oneValue = Convert.ToDouble(Request.Form["Feet"]);
     obj.result = obj.oneValue / 3.28084;
     return View(obj);
 }