Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public ActionResult Consultar_Descuentos()
  2. {
  3. return PartialView();
  4. }
  5.  
  6. [HttpPost]
  7. public ActionResult Consultar_Descuentos(Hotel hotel)
  8. {
  9. if (ModelState.IsValid)
  10. {
  11. ViewBag.descuentos = hotel.consultar_descuentos();
  12. }
  13.  
  14. return PartialView();
  15. }
  16.  
  17. public ActionResult Calcular_Precios()
  18. {
  19. return PartialView();
  20. }
  21.  
  22. [HttpPost]
  23. public ActionResult Calcular_Precios(Hotel hotel)
  24. {
  25. if (ModelState.IsValid)
  26. {
  27. ViewBag.precios = hotel.consultar_precios();
  28. }
  29.  
  30. return PartialView();
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement