예제 #1
0
 //
 // GET: /Calcular/
 public ActionResult Sumar(Calcular datos)
 {
     ViewBag.r = datos.num1 + datos.num2;
     return this.View();
 }
예제 #2
0
 public ActionResult Multiplicar(Calcular datos)
 {
     ViewBag.r = datos.num1 * datos.num2;
     return this.View();
 }